which ant version

Which ant version must be used for building?

I'm using ant 1.6.2 and I'm getting this error


antcall] etcl.generate (19s)
java (6s)
java.lang.NoSuchMethodError:
org.apache.tools.ant.taskdefs.Java.getCommandLine()Lorg/apache/tools/ant/types/CommandlineJava;
java.lang.NoSuchMethodError:
org.apache.tools.ant.taskdefs.Java.getCommandLine()Lorg/apache/tools/ant/types/CommandlineJava;
at
jetbrains.buildServer.agent.ant.AgentBuildListener.tryToPatchTask(AgentBuildListener.java:223)
at
jetbrains.buildServer.agent.ant.AgentBuildListener.messageLogged(AgentBuildListener.java:177)
at org.apache.tools.ant.Project.fireMessageLoggedEvent(Project.java:1943) at
org.apache.tools.ant.Project.fireMessageLogged(Project.java:1992) at
org.apache.tools.ant.Project.log(Project.java:399) at
org.apache.tools.ant.Task.log(Task.java:346) at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:137) at
org.apache.tools.ant.taskdefs.Java.execute(Java.java:83) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.Project.executeTargets(Project.java:1062) at
org.apache.tools.ant.Main.runBuild(Main.java:673) at
org.apache.tools.ant.Main.startAnt(Main.java:188) at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com


1 comment
Comment actions Permalink

Hello Gaston,

You can use bundled Ant (1.6.5 + JUnit jar).
There is no explicit need to use custom Ant unless you have a good reason to do it.

Regards,
KIR

Which ant version must be used for building?

I'm using ant 1.6.2 and I'm getting this error


antcall] etcl.generate (19s)
java (6s)
java.lang.NoSuchMethodError:
org.apache.tools.ant.taskdefs.Java.getCommandLine()Lorg/apache/tools/ant/types/CommandlineJava;
java.lang.NoSuchMethodError:
org.apache.tools.ant.taskdefs.Java.getCommandLine()Lorg/apache/tools/ant/types/CommandlineJava;
at
jetbrains.buildServer.agent.ant.AgentBuildListener.tryToPatchTask(AgentBuildListener.java:223)
at
jetbrains.buildServer.agent.ant.AgentBuildListener.messageLogged(AgentBuildListener.java:177)
at org.apache.tools.ant.Project.fireMessageLoggedEvent(Project.java:1943) at
org.apache.tools.ant.Project.fireMessageLogged(Project.java:1992) at
org.apache.tools.ant.Project.log(Project.java:399) at
org.apache.tools.ant.Task.log(Task.java:346) at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:137) at
org.apache.tools.ant.taskdefs.Java.execute(Java.java:83) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106) at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at
org.apache.tools.ant.Task.perform(Task.java:364) at
org.apache.tools.ant.Target.execute(Target.java:341) at
org.apache.tools.ant.Target.performTasks(Target.java:369) at
org.apache.tools.ant.Project.executeTarget(Project.java:1214) at
org.apache.tools.ant.Project.executeTargets(Project.java:1062) at
org.apache.tools.ant.Main.runBuild(Main.java:673) at
org.apache.tools.ant.Main.startAnt(Main.java:188) at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com



--
Kirill Maximov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.