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 by an 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(); ProjectHelper he

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