linux安装ant

apache ant 的网址:http://ant.apache.org/ 下载地址:apache-ant-1.8.4-bin.tar.gz 

OSC地址:Apache Ant

cp apache-ant-1.8.4-bin.tar.gz /usr/local
cd /usr/local

解压:

tar -zxvf apache-ant-1.8.4-bin.tar.gz
配置环境变量文件 /etc/profile

vi /etc/profile
ANT_HOME=/usr/local/apache-ant-1.8.2
在PATH中添加 :$ANT_HOME/bin

source /etc/profile
ant

你可能感兴趣的:(linux安装ant)