Installing Ant on windows, Linux/Unix

Installing Ant – Ant Setup on windows, Linux, Unix

Downloading Ant:
The latest version of Ant 1.9.3 was released on 29-December-2013. It is available from the Ant web page http://ant.apache.org/bindownload.cgi

Ant 1.8.* works with jdk1.4 and higher

Ant directory Structure:

ant
+— README, LICENSE, fetch.xml, other text files. //basic information
+— bin // contains launcher scripts
|
+— lib // contains Ant jars plus necessary dependencies jars
|
+— manual // contains documentation
| |
| +— images // various logos for html documentation
| |
| +— manual // Ant documentation
|
+— etc // contains xsl goodies

Only the bin and lib directories are required to run Ant.

Add the bin directory to your path.
Set the ANT_HOME environment variable to the directory where you installed Ant.

Ensure that ANT_HOME and JAVA_HOME variables are set.

Windows:
Assume Ant is installed in C:\Program Files\Apache Software Foundation\apache-ant-1.9.3 . The following sets up the environment:

Linux/Unix (bash)
Assume Ant is installed in /usr/local/ant. The following sets up the environment:

Linux/Unix (csh)

Check Installation:

You can check the basic installation with opening a new shell and typing ant. You should get a message like this

Buildfile: build.xml does not exist!
Build failed

Gopal Das
Follow me

Gopal Das

Founder at GopalDas.Org
He is a technology evangelist, Salesforce trainer, blogger, and working as a Salesforce Technical Lead. After working in Java based project implementation, he jumped to the Salesforce system on a whim and never looked back. He fell in love with Salesforce’s flexibility, scalability, and power. He expanded his knowledge of the platform and became a Certified App Builder, Administrator, Platform Developer I, SalesCloud Consultant while leading the Salesforce implementation and technology needs. He has worked in a wide variety of applications/services like desktop, web and mobile applications.
Gopal Das
Follow me

Leave a Reply

Your email address will not be published. Required fields are marked *