You can take a look at jde.util.AntServer

It uses the main method to pass the arguments and sets up a SecurityManager to
avoid ANT from killing the app.

Note, this is exactly what the ANT developers say not to do in their
documentation. (Calling their API from main) 

The other thing you are going to see is the use of reflection this is done
to allow compatability between JDK versions. So can probably ignore this and
reference it directly.

Javier

Joseph Campbell <[EMAIL PROTECTED]> writes:

> Someone on the ANT users list pointed me in the directino of this project for 
> a source of someone who has embedded ANT into their project.  I have need to 
> execute an ANT process from java and am looking for someone who has done it.
>
> Can you provide any assistance on this topic?
>       Thanks,
>               Joe Campbell
>
> -- 
> I wonder if there is anyone in the world who works harder 
> at anything than American school kids work at popularity. 
> Navy SEALs and neurosurgery residents seem slackers by 
> comparison.
>      - Paul Graham
> -----------------------------------------------------
> Joseph Campbell      | EMAIL: [EMAIL PROTECTED]
> Staff Consultant     | URL:   www.inventa.com
> Inventa Technologies | PH:    (856)914-5200
>                      | PGER:  (888)454-0876
> -----------------------------------------------------
>
>

-- 
 

Reply via email to