Thursday, November 18, 2010

Ant Installation

Follow the below steps:
  1. Download: Download the binary distribution from here
  2. Installation: Unzip the downloaded the binary distribution, say C:\apache-ant-1.7.1
  3. Configuration: It's time to set up the environment variables,
    1. JAVA_HOME: make sure to set this up  to the installed JDK path
    2. ANT_HOME : C:\apache-ant-1.7.1
    3. 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)
  4. Test: Test the complete setup by entering ant on command line
    1. 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)
    2. Failure if not. Check the paths once again in step 3.
  5. Note: Don't ever set CLASSPATH. Ant does not need it, it only causes confusion and breaks things

No comments:

Post a Comment