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.

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.

To add the Ant view to the current perspective, click command link Window > Show View > Other... > Ant > Ant.

Ant View Commands

Command

Name

Description

Availability

Add Buildfiles view and context menu command Add Buildfiles Allows you to add buildfile(s) to the view. View action and context menu
Add Buildfiles with Search view toolbar command Add Buildfile with Search Allows you to add buildfile(s) to the view using searching tools. View action
Hide Internal Targets view toolbar command Hide Internal Targets Allows you to hide / filter all internal targets from the view. View action
Run Selected Target view toolbar command Run Selected Target Allows you to run the selected target in the view. View action
Remove Selected Buildfile view toolbar and context menu command Remove Selected Buildfile Allows you to remove the selected buildfile from the view. View action and context menu
Remove All Buildfiles view toolbar and context menu command Remove All Buildfiles Allows you to quickly remove all buildfiles from the view. View action and context menu
Open With > Allows you to open an editor on the selected buildfile. Context menu
Refresh Buildfiles context menu command Refresh Buildfiles Refreshes the contents of the view to reflect the current state of all the represented buildfiles. Context menu
Run As > Ant Build context menu command Run As > Ant Build Launches an Ant build for the selected buildfile or for a specific selected target of the buildfile in Run mode. Context menu
Run As > Ant Build... context menu command Run As > Ant Build... Brings up the launch configuration dialog to edit the configuration associated with the selected buildfile in Run mode. Context menu
Debug As > Ant Build context menu command Debug As > Ant Build Launches an Ant build for the selected buildfile or for a specific selected target of the buildfile in Debug mode. Context menu
Debug As > Ant Build... context menu command Debug As > Ant Build... Brings up the launch configuration dialog to edit the configuration associated with the selected buildfile in Debug mode. Context menu
Ant support
External tools Running Ant buildfiles
Modifying the Ant classpath
Adding new Ant tasks and types
Using a different version of Ant Ant runtime preferences
Ant Editor
External Tools and Ant icons