ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Stevens <insomniacpeng...@googlemail.com>
Subject Re: Command-Line execution of a third-party task
Date Fri, 23 Mar 2012 08:29:06 GMT
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" <mvangeertruy@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-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message