Dev0Ps Krishna: Apache ANT
Dev0Ps Krishna: Apache ANT
Ant build files are written in XML and they take advantage of being open standard,
portable and easy to understand.
Usually, a developer spends substantial amount of time doing mundane tasks like build
and deployment that include:
It is an Operating System build and deployment tool that can be executed from the
command line.
Dev0ps Krishna 1
Ant provides an interface to develop custom tasks
Ant can be easily invoked from the command line and it can integrate with free and
commercial IDEs like Eclipse, Ant’s Nest and Gel.
Ensure that the JAVA_HOME environment variable is set to the folder where your JDK
is installed.
Unzip the zip file to a convenient location c:\folder. using Winzip, winRAR, 7-zip or
similar tools.
Create a new environment variable called ANT_HOME that points to the Ant
installation folder, in this case c:\apache-ant-1.8.2-bin folder.
Append the path to the Apache Ant batch file to the PATH environment variable. In our
case this would be the c:\apache-ant-1.8.2-bin\binfolder
To verify successful installation of Ant and Java, type the following commands though
command prompt
JAVA
ANT
Dev0ps Krishna 2
Ant –Build file
It should reside in the base directory of the project, but there is no restriction on the file
name or its location.
All build files require the project element and at least one target element.
<?xml version="1.0"?>
<target name="info">
</target>
Output
Dev0ps Krishna 3