bertrand lancelot wrote:
Hi all,
I need to call ANT within my Java application.
first, I tried to execute the class "org.apache.tools.ant.Main" with
properties from my application. After ANT starts, the JVM breaks with
System.exit usage. As a result my application shutdown too!
You should not, in g
Calling Ant from within Java is actually quite easy using the Project
class. See the BuildFileTest configureProject() and execute() methods
for an example (cf.
http://cvs.apache.org/viewcvs.cgi/ant/src/testcases/org/apache/tools/ant/BuildFileTest.java?rev=1.29&view=auto).
Fred Loney
Spirited Softw