Running Ant Scripts

When you run an Ant script, the IDE executes the script's default project. While the script is running, the Execution View window in the Running workspace displays the application you are currently building. The build output is displayed in the Output window. You can also run specific targets using commands in the Ant project node's contextual menu, or by creating a shortcut to the target.

To run an Ant script:

To configure an Ant project to run a target other than the default target:

  1. Right-click the Ant project node and choose Properties.
  2. In the Execution tab of the Properties window, click the Executor property, then click its ellipsis (...) button.
  3. In the Executor dialog box, and click the Run Target(s) property and add the targets you want.

    This action makes the targets the default targets run by all Ant scripts that use Ant Script Execution. If you only want to apply the change to certain files, make a custom copy of the executor, set the default targets it runs, then set your script to use the custom executor. For more information about creating custom executors, see Defining a New Executor Type.

To stop a running build:

See also
Compiling Files With Ant
Editing Ant Scripts
Configuring Ant Settings
Creating Custom Ant Tasks

Legal Notices