Creating and Running an Ant Project
The IDE provides you with templates that you can use to create an Ant
project and a template that assists you with defining custom Ant tasks
to run.
To create an Ant project:
- Choose File
New.
- Expand Ant Projects and select one of the types:
- Blank Ant Project - an empty Ant project for you to create from
scratch. After supplying a class and package name, clicking Finish
opens the Source Editor with an empty XML file in which you can write
your Ant script.
- Sample Ant Project - a sample Ant project that contains a generic build
script that contains basic make operations that you can use.
- Custom Task - creates an Ant project for your specific task with
the class and package name that you specify. Clicking Finish opens the
Source Editor with a project file in which you define your custom
operation, which you can call in your Ant script using
taskdef.
To run an Ant project:
- In the Explorer, expand your Ant project node.
Each Ant project has a default attribute in its XML file
that determines which target is executed if none is specified on the
command-line that calls Ant during a build.
The build output is displayed in the Output window.
- Double-click on the Ant class name for the project you want to run.
You can also run an Ant project by right-clicking the Ant project node
and choosing Execute from the contextual menu.
To stop a running build:
- In the Execution View window, right-click the running build and
choose Terminate Process.
Legal Notices