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:
- Choose Project
Settings.
- Expand Execution Types.
- Select Ant Script Execution.
- Click the Run Target(s) property in the Properties sheet and click
the ellipsis button.
- 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:
- Expand the Ant package in the Explorer.
- Right-click the Ant project and choose Properties from the
contextual menu.
- Click on the Execution tab in the Properties
window and click on the Executor property.
- 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:
- Expand the Ant project in the Explorer.
- Right-click on a target and choose Properties from the contextual
menu.
- Change the desired properties of the target.
Legal Notices