ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilbert Rebhan <gil...@maksimo.de>
Subject Re: launch Ant from Java code
Date Thu, 13 Jan 2011 21:07:17 GMT
-------- Original Message  --------
Subject: launch Ant from Java code
From: Patrick Martin <antuser@gmail.com>
To: Ant User <user@ant.apache.org>
Date: Wed Jan 12 2011 14:08:35 GMT+0100 (CET)

> Hello and happy new year to you all,
> 
> What is the recommended way for launching an Ant script/task from Java code ?
> 
> It seems to me that the following URL
> http://ant.apache.org/manual/running.html#viajava
> rather explains how to launch Ant with java.exe from the command line.
> Is it also recommended to launch the main() method from with a Java
> code? Or is there a launch API that can be used?


Another option is to use ant via groovy, see =
http://groovy.codehaus.org/Ant+Integration+with+Groovy
http://groovy.codehaus.org/Using+Ant+Libraries+with+AntBuilder


Regards, Gilbert


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message