Java Reference
In-Depth Information
Figure D.5 The Ant view displays all the Ant
targets found in build.xml.
Figure D.4
Eclipse displays the Ant view.
To execute a target from an Ant buildfile, first tell Eclipse to display the Ant view by
clicking the Window > Show View menu item and selecting Ant. Figure D.4 shows
the result.
Then, click the icon to add a buildfile to the Ant view. For example, add the
build.xml file from the ch06-stubs project. The Ant view now lists all the Ant targets it
has found in the build.xml file, highlighting the default target (see figure D.5).
To execute a target, select it and click the button. Figure D.6 shows the result of
executing the compile target. Note that Eclipse captures the Ant output and displays
it in the console view at the bottom right of the figure.
Figure D.6
Result of executing the compile Ant target for the ch09-ant project
Search WWH ::




Custom Search