Apache Ant is fully fledged open source toll we can download from Apache Distributed System. The latest Apache Ant version, including its full-source code, class files, and documentation can be found at
http://ant.apache.org
Install Apache Ant on Windows
You just need to download the Ant’s zip file, and Unzip it, and configure the ANT_HOME Windows environment variables.
Step 1: Make sure you have a Java environment installed.
(JAVA_HOME, PATH)
Click Here for Java Environment Setup
Step 2: Download Apache Ant.
http://ant.apache.org/manual/install.html#getBinary.
Step 3: Unzip the downloaded file into a directory. As below
Step 4: Set environmental variables
JAVA_HOME to your Java environment,
ANT_HOME to the directory you unzip Ant to, and add
${ANT_HOME}/bin
Step 5: Append the path to the Apache Ant batch file to the PATH environment variable. In our case this would be the
D:\personal data\apache-ant-1.9.7\bin folder.