下载地址:http://www.apache.org/dist/ant/binaries/
.zip结尾的是windown的
.gz是linux的
下载完后无需安装,具体配置如下:
1、将发布解压到所需目录
2、设置ANT_HOME环境变量指向此目录
3、设置JAVA_HOME环境变量指向jdk目录
4、在path环境变量中添加;%ANT_HOME%\bin
在cmd命令窗口 输入ant -vesion 查看是否配置成功
Unknown argument: -vesion
ant [options] [target [target2 [target3] ...]]
Options:
-help, -h print this message
-projecthelp, -p print project help information
-version print the version information and exit
-diagnostics print information that might be helpful to