AW: Invoking Ant programmatically with an Java-String

2009-03-09 Thread Jan Bartel
Hi Stefan and Gilbert, thank you for your help :-) >Not easily. Ant's projecthelper implementation wants to read from a >File and you really need a file when you want to resolve relative >paths and so on.:t > I suppose reimplementing the projecthelper would fit my requirements . Isn't there a

Re: Invoking Ant programmatically with an Java-String

2009-03-08 Thread Gilbert Rebhan
Jan Bartel schrieb: > Is there any possibility to invoke ant with an Java-String without using a > real build.xml ??? if you want to use Ant without xml you may try = 1.Groovy / AntBuilder http://groovy.codehaus.org/Ant+Integration+with+Groovy or 2.Leafcutter https://leafcutter.dev.java.net/

Re: Invoking Ant programmatically with an Java-String

2009-03-07 Thread Stefan Bodewig
On 2009-03-07, Jan Bartel wrote: > Hi everybody, > I try to invoke ant programmatically. > At the moment I use the following code to invoke ant from a build.xml: > File buildFile = new File("build.xml"); > Project p = new Project(); > p.setUserProperty("ant.file", buildFile.getAbsol

Invoking Ant programmatically with an Java-String

2009-03-07 Thread Jan Bartel
Hi everybody, I try to invoke ant programmatically. At the moment I use the following code to invoke ant from a build.xml: File buildFile = new File("build.xml"); Project p = new Project(); p.setUserProperty("ant.file", buildFile.getAbsolutePath()); p.init(); ProjectHe