Appendix A. Apache Ant
A.1. Installing Apache Ant
Procedure A.1. Installing Apache Ant on Red Hat Enterprise Linux
- Download and install Apache Ant and the Trax plugin on Red Hat Enterprise Linux Repository by issuing this command:
[localhost]$ sudo yum install ant-trax
Procedure A.2. Installing Apache Ant on Other Operating Systems
Download and Extract
Download theApache Antbinary release from http://ant.apache.org/bindownload.cgi.Once it is downloaded, extract it in a preferred installation location, such asc:\Program Files\Apache\Ant\or/opt/apache-ant-1.8/.Add the ANT_HOME Environment Variable
Create an environment variable calledANT_HOME. This variable has to contain the path created in the previous step.- Do this on Red Hat Enterprise Linux by adding the following line to the
~/.bash_profilefile, substituting the path with that created in the previous step.export ANT_HOME=/opt/apache-ant-1.8.1
- On Microsoft Windows, do this by clicking on the , opening the and then selecting System -> Advanced -> Environment Variables.Create a new variable, calling it
ANT_HOME, and configure it to point to the directory created in the previous step.
Include
binin thePATHAppend thebindirectory of the Ant installation to thePATHenvironmental variable.- On Unix/Linux systems, one does this simply by adding the following line to the
~/.bash_profilefile after the one which sets theANT_HOMEvariable:export PATH=$PATH:$ANT_HOME/bin
- On Microsoft Windows, do this task by opening the and selecting System -> Advanced -> Environment Variables -> System Variables. Edit the
PATHvariable and append the text;%ANT_HOME%\bin.
ant -version from a command line shell. The output should look similar to this:
[localhost]$ ant -version Apache Ant version 1.8 compiled on June 27 2008
Apache Ant, visit the project's website at http://ant.apache.org.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.