Bug 45701 - Upgrade from 1.6.5 to 1.7.1 is not working.
Summary: Upgrade from 1.6.5 to 1.7.1 is not working.
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.7.0
Hardware: PC Windows XP
: P2 critical (vote)
Target Milestone: 1.8.0
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-27 23:22 UTC by kishore
Modified: 2008-08-29 07:03 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kishore 2008-08-27 23:22:34 UTC
i have upgraded the ant 1.6.5 to 1.7.1 version.
JDK VERSION: 1.5

Here i could not find ant-contrib-1.0b1.jar file and i am getting following error when issued mergecopy command in build.xml

java.lang.NoSuchFieldError: filesets
        at com.steelwedge.tasks.MergeCopy.execute(MergeCopy.java:103)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Comment 1 Stefan Bodewig 2008-08-29 06:59:18 UTC
I'm not sure why you mention ant-contrib.

From the stacktrace it looks as if Ant had changed some internal API that the custom task com.steelwedge.tasks.MergeCopy relies on.  Without knowing the code of that task, it is hard to guess what we've changed and whether there is a workaround.
Comment 2 Stefan Bodewig 2008-08-29 07:03:48 UTC
Ok, my guess is MergeCopy extends Copy.  Copy used to have a protected Vector attribute named filesets that has been renamed to rcs in Ant 1.7.0.

svn revision 690264 re-adds this attribute.