Running an Ant Script

When you run an Ant script, the IDE executes the script's default target. 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 ellipsis (...) button in the Executor property.
  3. In the Executor dialog box, and click the Run Target(s) property and type the desired target.

    This action makes the targets the default targets run by all Ant scripts that use Ant Script Execution. If you want to apply the change only to certain files, you should make a custom copy of the executor that executes the specified targets and 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
Compiling Projects With Ant
Executing a Target
Creating a Shortcut to a Target
Editing an Ant Script
Configuring Ant Settings

Legal Notices