Java Reference
In-Depth Information
Add adds an Ant build file to the project.
Remove removes the currently selected Ant build file from the project.
Run executes the selected build file or Ant target.
Filter targets , if enabled, enables the target filter to hide unwanted targets.
Expand all expands the tree to show all the targets under each build file.
Collapse all collapses the tree to show only the build files themselves.
Properties opens the Build File Properties dialog, where you can modify
the execution properties for the currently selected build file.
Help opens help related to the Ant Build window.
Adding a build file to your project
To add a build file to a project, click the Add icon on the
Ant toolbar and select your build file with the file
requestor. You must select an existing build file; one
won't be created for you automatically. After you add a
build file, the window looks something like figure 5.8.
You can add more than one build file to an IDEA
project, should you decide to break up your build into
several components. Each file you add is listed in the
Ant Build window under the project name specified in
the build file. Don't confuse this with the name of your
IDEA project; this name comes from the value of the
name attribute of the Ant build file's <project> tag (the
root tag for an Ant build). The actual name you select is
arbitrary. Under each build file is a list of the build tar-
gets defined in it. Right-clicking a build file's name dis-
plays a context menu, which gives you several options:
Figure 5.8 The Ant Build
tool window provides access
to all your build file's
targets. The tool window
buttons let you add and
remove build files from
IDEA's list of known build
files, execute a selected Ant
target, filter available
targets, expand and
collapse the tree, edit
properties, and view help.
Run Build executes the default target (we'll dis-
cuss this shortly).
Jump to Source ( F4 ) loads the build file into the editor window.
Remove disassociates the build file from the project but leaves the file
untouched (it isn't deleted).
Properties ( Alt+Enter ) opens the build properties dialog, analogous to
clicking the Properties button on the Ant toolbar.
 
 
 
 
Search WWH ::




Custom Search