Linux上ANT安装
一、Ant下载安装
官网下载地址:https://ant.apache.org/bindownload.cgi
下载apache-ant-1.10.5-bin.tar.gz到home目录
安装命令如下:
cp apache-ant-1.10.5-bin.tar.gz /usr/local
cd /usr/local
tar -zxvf apache-ant-1.10.5-bin.tar.gz
mv apache-ant-1.10.5-bin ant
二、配置环境变量
在path里配置ant安装地址\bin,ant安装地址\lib
#vi /etc/profile
export PATH=/usr/local/ant/bin:/usr/local/ant/lib:${PATH}
source /etc/profile
三、验证:ant
ant
不足之处望指正Buildfile: build.xml does not exist!
Build failed