Hi Robert,

Thanks, I'll have a look right now :-)

On Sep 25, 2009, at 19:18 , robert lazarski wrote:

On Fri, Sep 25, 2009 at 1:17 PM, Jean-Baptiste BRIAUD -- Novlog
<j-b.bri...@novlog.com> wrote:
Hi,

I'd like to launch an Ant build from Java (from a servlet in a Tomcat
server).

What would you advise me to do that ?
Should I launch it from OS using exec or should I try to use Ant classes
from my own classes ?
At first sight, I see the main class has a private method run so it is not
possible/wanted/designed to run ant from Java classes.

Any advices, ideas ?


Launching ant programatically is described pretty well in this article
- it helped me a few months ago:

http://www.ibm.com/developerworks/websphere/library/techarticles/0502_gawor/0502_gawor.html

As for RuntimeExec etc, it'd probably work but I've never tried it.

- R

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




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

Reply via email to