Follow the below steps:
- Download: Download the binary distribution from here
- Installation: Unzip the downloaded the binary distribution, say C:\apache-ant-1.7.1
- Configuration: It's time to set up the environment variables,
- JAVA_HOME: make sure to set this up to the installed JDK path
- ANT_HOME : C:\apache-ant-1.7.1
- PATH: %ANT_HOME%\bin\; (append this to the exisitng path so that we can run ant from command line. Make sure not to include any blank spaces in the path)
- Test: Test the complete setup by entering ant on command line
- Success if you get this error msg - Buildfile: build.xml doesn't exist! Build failed (since no build.xml file exists in the current directory)
- Failure if not. Check the paths once again in step 3.
- Note: Don't ever set CLASSPATH. Ant does not need it, it only causes confusion and breaks things
No comments:
Post a Comment