ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Bartel <>
Subject Invoking Ant programmatically with an Java-String
Date Sat, 07 Mar 2009 20:57:20 GMT

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()); 
    ProjectHelper helper = ProjectHelper.getProjectHelper(); 
    p.addReference("ant.projectHelper", helper); 
    helper.parse(p, buildFile); 

Is there any possibility to invoke ant with an Java-String without using a 
real build.xml ??? 

Thank you for your suggestions 



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message