Apache ANT Setup

Follow the below steps to set-up ANT build tool-

  1. Go to the folder which have been downloaded in this cases

“C:\Selenium\ANT\apache-ant-1.8.4-bin\apache-ant-1.8.4”

  1. Go to Computer properties->Click on Advance tab->Environment Variables
  2. In the System Variable Create an new variable name as “ANT_HOME”
  3. Paste the above ANT directory in the path text box Click Search for a PATH variable select the variable and click on Edit button
  4. Append a semicolon”;” and paste the above ANT directory appending “/bin”
  5. To check whether ANT is completely set into the Environment Go to Command prompt and type ant and hit enter key.
  6. After pressing ant you will see “Buildfile: build.xml does not exist! Build failed”
  7. This message will confirm you that Ant is configured properly.