1:Ant的下载地址http://ant.apache.org/bindownload.cgi

2:下载tar.gz格式的

3:下载到/usr/local下面用命令

   wget http://apache.etoak.com//ant/binaries/apache-ant-1.9.0-bin.tar.gz

4:tar -zxvf apache-ant-1.9.0-bin.tar.gz

5:配置环境变量

6:vi /etc/profile

 export ANT_HOME=/usr/local/apache-ant-1.9.0

 export PATH=/usr/local/apache-ant-1.9.0/bin:$PATH

7:source /etc/profile 让配置生效

8:输入命令ant显示

  Buildfile: build.xml does not exist!

  build failed

成功了................