cruise from Thougthworks and ant 1.7.1 on centos 5.2

Posted by Edmund Haselwanter on Tuesday, September 29, 2009

This is on howto use apache ant 1.7.1 in Cruise 1.2 from Thoughtworks

Since Cruise 1.2 ant ist not bundled with Cruise. So the way to go is install either ant for the cruise user (agent), or provide a system wide ant installation.

fetch ant from apache.org:“http://ant.apache.org/”

   1  cd /opt
   2  wget http://mirror.deri.at/apache/ant/binaries/apache-ant-1.7.1-bin.tar.gz

install it in a suitable place

   1  tar -xzvf apache-ant-1.7.1-bin.tar.gz
   2  ln -s apache-ant-1.7.1 ant

and add the following file

   1  vim /etc/profile.d/ant.sh 
   2  export ANT_HOME=/opt/ant
   3  export PATH=/opt/ant/bin:$PATH

restart the cruise agent to pick up the new settings

   1  vim /etc/profile.d/ant.sh 
   2  export ANT_HOME=/opt/ant
   3  export PATH=/opt/ant/bin:$PATH

verify your new settings:

   1  [cruise@test:~] env |grep ANT
   2  ANT_HOME=/opt/ant
   3  [cruise@test:~] ant -version
   4  Apache Ant version 1.7.1 compiled on June 27 2008