ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ognjen Blagojevic <ogn...@etf.bg.ac.yu>
Subject Re: Include XML file
Date Fri, 26 Sep 2008 08:25:41 GMT
Nan Null wrote:
> I think you have a communication problem.

Yes, we did have, thanks for jumping in. :)


> Once you have the build.xml file, you can call (System.execute) Ant,
> passing in the path of the build file and the jsp.

Or it can be called directly from Java, using class 
org.apache.tools.ant.launch.Launcher, avoiding the call to the OS:

         String[] antArgs = {"targetName"};
         Launcher.main(antArgs);

Don't forget to put ant.jar and ant-launcher.jar in the classpath.

HTH,
-Ognjen


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


Mime
View raw message