Re: launch Ant from Java code

2011-01-13 Thread Gilbert Rebhan
Original Message Subject: launch Ant from Java code From: Patrick Martin To: Ant User Date: Wed Jan 12 2011 14:08:35 GMT+0100 (CET) > Hello and happy new year to you all, > > What is the recommended way for launching an Ant script/task from Java code ? > >

Re: launch Ant from Java code

2011-01-13 Thread Antoine Levy-Lambert
On 1/13/2011 2:57 AM, Patrick Martin wrote: Thank you Antoine, I do have a follow-up question on this though. Will this be thread safe? Is it possible to run two targets in parallel from Java code, without any interactions (different projects, property sets and so on)? Ant has a parallel task, a

Re: launch Ant from Java code

2011-01-12 Thread Patrick Martin
Thank you Antoine, I do have a follow-up question on this though. Will this be thread safe? Is it possible to run two targets in parallel from Java code, without any interactions (different projects, property sets and so on)? I am especially afraid of the system properties which may be shared and

Re: launch Ant from Java code

2011-01-12 Thread Antoine Levy Lambert
Hello Patrick, you can have a look at this document from our manual too : http://ant.apache.org/manual/antexternal.html Creating a Project object is necessary in nearly all cases because ant tasks generally need to be bound to a project in order to be able to log. I have another example whic

launch Ant from Java code

2011-01-12 Thread Patrick Martin
Hello and happy new year to you all, What is the recommended way for launching an Ant script/task from Java code ? It seems to me that the following URL http://ant.apache.org/manual/running.html#viajava rather explains how to launch Ant with java.exe from the command line. Is it also recommended