Tag Archives: Ant

Enumerating Ant targets programatically

In my previous blog post, I provided some sample code showing how to execute ant targets programatically from Java. This code showed how to execute the default ant target. Enumerating the targets is a similarly easy process. The code below shows how … Continue reading

Posted in Java | Tagged | Leave a comment

Executing Ant tasks programatically

Executing ant tasks programatically via Java is fairly straightforward as shown in the following code sample. To compile and run the following code, ensure you have ant.jar, xercesImpl.jar, xml-apis.jar and ant-launcher.jar (all from the ant lib directory) on your claspath. … Continue reading

Posted in Java | Tagged | Leave a comment