Hello !!!! I just downloaded the ant 1.5 source. Did the bootstraping. Set the appropriate classpath and path. And when I tried to run ant on a build xml file that was working find in version 1.4.1 it gave me the following errors. Kindly let me know what I should do. D:\Projects\Scaffolding\Source_Ver1.0\Development>ant -buildfile build- findbysql.xml -Djboss=true Buildfile: build-findbysql.xml BUILD FAILED java.lang.VerifyError: (class: org/apache/tools/ant/taskdefs/optional/sitraka/CovMerge, method: ge tSnapshots signature: ()[Ljava/io/File;) Incompatible object argument for function call at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.tools.ant.Project.init(Project.java:178) at org.apache.tools.ant.Main.runBuild(Main.java:420) at org.apache.tools.ant.Main.start(Main.java:153) at org.apache.tools.ant.Main.main(Main.java:176) Total time: 0 seconds (class: org/apache/tools/ant/taskdefs/optional/sitraka/CovMerge, method: getSnapshots signature: ( )[Ljava/io/File;) Incompatible object argument for function call Regards, Aravind.
You are more than probably mixing different ant version. On a small note, you don't have to build ant yourself, there are the binaries available. There are complex conditional compilation because of the huge number of dependencies so unless you know exactly what you are doing you will compile half of the classes that are delivered in an official release.