Using ant inside a java application?

M

Marc Eckart

Hi,

I have written a source generator which, the name points out :), generates
source code. Now I want to compile the output and do some other stuff with
the class files. I have an ant build.xml which has the necessary tasks, but
I don't know how to call them from inside my application.

I looked at the manual and the javadocs of ant, but it doesn't brought me
any further....

Any suggestions?

Greetz,
Marc
 
A

Arnaud Berger

Hi,

Look at the scripts that launch ant (bat, sh)

They all call the class org.apache.tools.ant.Main followed by usual options.
This (and maybe ant sources) may help you start.

Regards,

Arnaud
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top