Next Previous Contents

3. How to Setup Ant

3.1 Getting Ant

Download the Ant binary from ant.apache.org. Place in a directory of your choice. The latest version as of this writing is 1.6.1.

3.2 Ant: Installation

Copy the Ant binary (apache-ant-1.6.1-bin.tar.gz) to the top-level directory where you want to install it. A good spot is /usr/local.
$ su -
# mv $HOME/src/apache-ant-1.6.1-bin.tar.gz  /usr/local
# cd /usr/local
# gzip -d apache-ant-1.6.1-bin.tar.gz
# tar -xvf apache-ant-1.6.1-bin.tar

3.3 Ant Configuration

Add the Ant bin directory to your PATH.
# vi /etc/profile
PATH=$PATH:/usr/local/apache-ant-1.6.1/bin
Add ANT_HOME
ANT_HOME=/usr/local/apache-ant-1.6.1
export ANT_HOME
Check out the Ant manual: http://ant.apache.org/manual/ for more information.

<29-Mar-2004>
Next Previous Contents