Creating Ant buildfiles

Ant buildfiles are just text files, so the most straightforward way to create an Ant buildfile in Eclipse is:

  1. File > New > File.
  2. Enter any name for the file, but make sure it has a .xml extension.
  3. Click Finish.

As long as the file has a .xml extension, Eclipse will consider it to be a possible Ant buildfile, and will enable Ant-related actions when it is selected.

As we will see in a later section, you can create an Ant buildfile for an Eclipse plug-in that contains predefined targets related useful for deploying the plug-in.

Copyright IBM Corporation 2000, 2003. All Rights Reserved.