-------- Original Message -------- Subject: launch Ant from Java code From: Patrick Martin <antu...@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-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org