Me n My Programming

If Only I Have TIme

Invoking Apache Ant programmatically

I was finding a way to execute my ant file using code. Done a quick search on google and found this site

It has a good explanation step by step how to invoke apache ant from code. The trouble is that it forgot to include another important file to the external jar to the project libraries. You should also add:

ant-launcher.jar (you can found it under the same org.apache.ant file or download ant file from apache and go to lib folder).

This means that your external jar should have four files:

  • ant.jar
  • ant-launcher.jar
  • xerces.jar
  • xmlParserAPIs.jar

Thank you.


2 comments on “Invoking Apache Ant programmatically

  1. ayie
    June 23, 2011

    Ada masalah lagi, biar abang sazly tolong selesaikan :D:D:D

  2. Iso
    June 24, 2011

    ada.. tak bole display result plak. kjp lg aku hantar code dkt ko ek 😀

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


This entry was posted on April 19, 2011 by in Java, Life on Marama, XML.
%d bloggers like this: