Running Ant Scripts

When you double-click on an Ant script node, its default target is run. If you want to run a target other than the default, you can specify the target you want to run. For example, you might want to set an Ant build script as your project main class but want to run the script with a different target.

To specify a target:

  1. Choose Project Settings.
  2. Expand Execution Types.
  3. Select Ant Script Execution.
  4. Click the Run Target(s) property in the Properties sheet and click the ellipsis button.
  5. In the Run Target(s) dialog box, type the target or targets you want to run. When specifying multiple targets, separate each target name by a space or comma.

To specify a target from the Explorer:

  1. Expand the Ant package in the Explorer.
  2. Right-click the Ant project and choose Properties from the contextual menu.
  3. Click on the Execution tab in the Properties window and click on the Executor property.
  4. Click the ellipsis button and in the Executor dialog box, and click the Run Target(s) property add the targets you want.
You can configure multiple types of Ant execution at once, setting different execution types to different Ant scripts, and so on.

To modify a target:

  1. Expand the Ant project in the Explorer.
  2. Right-click on a target and choose Properties from the contextual menu.
  3. Change the desired properties of the target.

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

Legal Notices