In this section we will learn about the various aspect of Apache Ant such as what is Apache Ant, what is build tool, how to configure ant, download and install apache ant etc.
What is Build Tool ?
Build Tool is the tool for automating repetitive tasks. This tool makes the tasks automate like code compiling, packaging the binaries, deployment of binaries to the test server, running software tests, copy code from one location to another, creating files and documentation for the software deployment etc. Build tools are generally run from the command line. Java build tools that are used mostly are as follows : Apache Ant, Maven, and Gradle.
What is Apache Ant ?
As we have seen in the above paragraph, Apache Ant is a popular build tool for Java platform. It is also known as Another Neat Tool. The primary task of Ant is to build and deployed the Java projects and can be executed from a command line but, it can be used for doing almost all possible repetitive tasks.
Features of Ant
How To Configure Ant?
Ant is configured into an XML file. The default name of the configuration file is build.xml. All the configuration specification is provided into this file. There are three sections on which the Ant build relies on. These are tasks, target, extension points.
Download And Install Apache Ant On Windows
To download the latest version of Apache Ant please go through the link http://ant.apache.org and download the binaries files. Unzip the zip file at the specified location. Then create a new environment variable called "ANT_HOME" and value should be indicated to the Ant installation folder. For example, c:\apache-ant-1.8.2-bin. In the PATH environment variables the path c:\apache-ant-1.8.2-bin\bin should be append to Apache Ant batch file.
For reading more in detail about Apache Ant and the various of examples you may go through the following link http://www.roseindia.net/tutorials/ant/index.shtml
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial
Discuss: Ant Tutorial
Post your Comment