下载:
apache-ant-1.9.2下载: http://ant.apache.org/bindownload.cgi
将下载的压缩包解压到想存放的目录中, 譬如: E:\Program Files\apache-ant-1.9.2
==============================================================配置环境变量:
右击我的电脑 -> Properties -> Advanced system settings -> Environment Variables在系统变量(System variables)Tab中
新建(New):
Variable name: ANT_HOMEVariable value: E:\Program Files\apache-ant-1.9.2
编辑path:
;%ANT_HOME%\bin
===============================================================
测试配置结果:
C:\Users\userName>ant -version
Apache Ant(TM) version 1.9.2 compiled on July 8 2013
看到消息则证明配置成功