Eclipse - Configure ANT Home

One thing that I mentioned during my first presentation at CFUnited was to change the ANT home in eclipse preferences. Eclipse comes bundled with ANT however I like to keep ANT in one central location as

  • All ANT external jars can be placed under ANT/lib folder. In this way it becomes available to all Eclipse projects
  • It is easier to upgrade to a newer version of ANT if one becomes available
  • If I've to switch machines, I can just copy the ANT folder to a new machine without much fuss

These are the steps to change the ANT home for Eclipse

  1. Download the latest ANT distribution from here and unzip it to a folder in your drive e.g. c:\ant
  2. Go to Windows -> Preferences
  3. Browse to the ANT section either by clicking ANT or using the filter box on the top.
  4. Under Runtime you'll see an entry for ANT Home. Click the button "Ant Home" and browse to the directory where you have unzipped ANT distribution
  5. Click "Apply"

Hope that helps

Related Blog Entries

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)