Why not just create your own mybuild.xml and run that with ant -f ? No need to alter the original build.xml, but you could always import it to take advantage of any initialise targets etc.
Andy. On 23 Mar 2012 02:50, "Mike Van" <mvangeert...@comcast.net> wrote: > How would you execute a third-party-task from the command-line? > Specifically, I would like to execute the sonar-ant-task from the > command-line on a project with an existing build.xml file. Unfortunately, > editing the parent build.xml file isn't an option because of the 60+ > modules > and thier sub-modules in the application. I have seen that the > sonar-maven-plugin can be executed from the command line using the > following: > mvn -e org.codehaus.mojo:sonar-maven-plugin:1.0:sonar > > Is there a similar mechanism that could be used to pass in a 3rd party > ant-task as an argument for an ant build along with its required > properties? > > -- > View this message in context: > http://ant.1045680.n5.nabble.com/Command-Line-execution-of-a-third-party-task-tp5588338p5588338.html > Sent from the Ant - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > >