Skip to Content

Apache Ant

is software tool written in Java. Its kind of ‘make’ tool for automating Java software build processes. Ant stands for “Another Neat Tool”. Ant makes uses of build script based on XML (which is by default named as build.xml).

Ant could be used to change the default build behavior of Eclipse 3.1 IDE (for example generating a jar after compilation).

Eclipse 3.1 includes a new export functionality called Export as Ant buildfile. Ant Build files could be generated for any project by using the File > Export > Ant Buildfiles.

image

          <fileset dir=”.” includes=”*/.class”/>

         

image

To run the new build behavior right click on the ant view and run the desired target or the entire build script as follows:

image

On successful completion of the build a jar would be generated for the project as below.

image

More about Ant could be found at the following urls:

http://en.wikipedia.org/wiki/Apache_Ant

http://ant.apache.org

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply