Its really simple.
1. Make sure you have java environment installed in your system.
2. Download Ant binary distribution form here.
3. Uncompress the file downloaded.
4. Set the environment variables.
Click new button to add new environment variable. Type "
ANT_HOME"
as the variable name and give the path of the directory where you uncompress Ant as the value. Then edit the path variable. For Windows add %ANT_HOME%/bin and for Linux add ${ANT_HOME}/bin to the value value of the path variable. At the end the value of the path variable should be shown like this. C:\Program Files\Java\jdk1.6.0_22\bin ; %ANT_HOME%/bin.
5. Click OK and save all the changes.
Now your are ready to use Apache Ant.
You can make sure that Ant is installed correctly by executing the command
ant -version in command prompt. If it is installed correctly it should show the version information of Ant distribution.
No comments:
Post a Comment