1.安裝文件
apache-ant-1.9.6.bin.tar.gz
2.安裝
tar -xzvf apache-ant-1.9.6.bin.tar.gz
mv apache-ant-1.9.6 /usr/local
3.配置環(huán)境變量
vi /etc/profile
export ANT_HOME=/opt/mobile_ci/apache-ant-1.9.6
export PATH=$PATH:$ANT_HOME/bin
source /etc/profile
4.測試
ant -version