카테고리 없음

centos ant 설치

[czar] 2011. 6. 16. 10:59

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

[출처] centos ANT 설치|작성자 지훈