Wednesday, April 9, 2014

Setting up ANT on Windows

1)  Download the ANT from Apache.
2)  Extract the .zip file to a directory near to root
       D:\apache-ant-1.9.3
3) Set following environment variables according to your directory structure.
             ANT_HOME=D:\apache-ant-1.9.3
            JAVA_HOME=D:\Program Files\Java\jdk1.7.0_45
            PATH=D:\cygwin64\bin;%ANT_HOME%\bin;
   if the PATH variable contains already contains paths. separate them with ";".



Every time a change is made to the environmental variables get a new command prompt. type the following two commands in the CMD to check whether the ANT is working properly

You will get an error since you have not passed a build XML for the first command.