Running Ant build files

To run an Ant script in the Workbench:

  1. In the Navigator view, select an XML file.
  2. From the file's pop-up menu, select Run Ant. If the selected XML file is a valid Ant script, the Ant wizard opens.
  3. Select one or more targets from the Available targets list. The order in which you select the items is the order in which they will run. The order is indicated by the number in square brackets to the left of the target.
  4. (Optional) Type any required arguments in the Arguments field.
  5. If you want output from the script to display in a console in the Workbench, select Show execution log in console.
  6. Click Finish.

The Ant script will run on the selected targets. If you selected the option, the Log Console displays any applicable execution results after the script runs.

Once a script is run through the Ant wizard, it is automatically configured as an external tool. In order to change the configuration or rerun the script, go to the Run > External Tools menu.

Related concepts
Ant support
Builds
External tools

Related tasks
Running external tools
Modifying the Ant classpath
Using a different version of Ant
Adding new tasks and types

 
Copyright IBM Corporation and others 2000, 2002