Step-1. Go to the Apache ant site and download the ant binary.
Step-2. Extract Apache ant inside C drive.
Step-3. Go inside Apache Ant directory copy path (C:\apache-ant-1.9.6)
Step-4. Right Click on my computer and select properties and Click on Advanced System Settings.
Step-5. Click on the 'Environment variables' under 'Advanced' Tab.
Step-5. Click on 'New' Button under the System variables
Step-6. Enter variable name as 'ANT_HOME' and variable value as 'C:\apache-ant-1.9.6'
Step-6. Select 'Path' under Systems variables and Click on Edit button
Step-7. Inside Edit System variables put %ANT_HOME%\bin inside variable value followed by ;
Note- Make sure you start with ; in the Variable value so that it doesn't corrupt the other environment variables which is already set.Step-8. You are done with setup Apache Ant path variables now you can check below command on Command Prompt
If you see the following, ant is installed
Buildfile: build.xml does not exist! Build failed
No comments:
Post a Comment