Ant view

The Ant view provides a place to view Ant buildfiles and makes it easy to execute a buildfile or a given target within a buildfile. You can add files to the view and expand buildfiles to reveal the targets defined within them.

The pop-up menu for this view also allows you to open an editor on a buildfile, execute the selected target or buildfile, and configure the launch configuration used when executing.

Here is what the Ant view looks like:

Ant View

Like other views in the Workbench, the Ant view has its own toolbar. Toolbar buttons are provided for adding buildfiles to the view and for executing them.

Titlebar

Add Buildfile

This command prompts you to select a buildfile in the workspace to be added to the view.

Add Buildfiles with Search

This command searches for buildfiles and adds them to the Ant view. You can specify a file name pattern to search for and limit the scope of the search.

Run the Default Target of the Selected Buildfile

This command runs the default target of the selected buildfile or the selected target. The buildfile is executed using the launch configuration associated with the buildfile. Note that the target execution is based on the selection in the view; the targets selected in the launch configuration are ignored.

Refresh View

This command refreshes the contents of the Repositories view.

Collapse All

This command collapses all expanded entries in the Repositories view.

Remove Selected Buildfile

This command removes the selected buildfiles from the view.

Remove All Buildfiles

This command removes all buildfiles from the view.

Context menu

The context menu contains a few actions in addition to the actions available in the toolbar.  

Properties... 

This command brings up the launch configuration dialog to edit the configuration associated with the selected buildfile.

Open With >  

This menu allows you to open an editor on the selected buildfile.

Related concepts
Ant support
External tools

Related tasks
Running Ant buildfiles
Modifying the Ant classpath
Adding new Ant tasks and types
Using a different version of Ant

Related reference
Ant runtime preferences
Ant Editor
External Tools and Ant icons


Copyright IBM Corporation and others 2000, 2003