This is a multi-part message in MIME format.
----- Original Message -----
From: "Josh Lucas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 03, 2000 8:31 AM
Subject: Using Ant in another program


> What is the best way to use Ant in an existing program?
>
> Try to mirror the functionality of the Ant task?
>
> Any thoughts would be appreciated.
>

Have a look at org.apache.tools.ant.ProjectHelper or at the source included,
it does all this. You have to do something like

- Create a new Project
- Add target(s) to it
- Add task(s) to the target(s)
- call Project.executeTarget()

Reply via email to