ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <>
Subject RE: Specify non-top level target
Date Wed, 21 Nov 2007 07:22:46 GMT

-----Original Message-----
From: mjdenham [] 
Sent: Tuesday, November 20, 2007 7:25 PM
Subject: Specify non-top level target

My ant build file is getting quite long and has a lot of targets.  When
view the ant file in Eclipse it can be difficult to see which targets
the top-level ones which I would call and which are just helper targets

Is it possible to remove some of the "targets" from the external
just leaving a set of targets which people will actually invoke.

The eclipse outline view shows a nice overview of your script, if your
file is associated to the ant editor and if the outline view is opened.
You may then choose any target to be executed via right mouse, context
menu and Run As | Debug As

here is how to =

( i'm using the ant editor in eclipse version 3.2.2 )

first =
i've changed my settings in General | Editors | File Associations to
all *.xml files with the ant editor. By default only files named
build.xml are bound
to the ant editor.
You may also create a new list of buildscript file names via File
and Add a comma separated list of file name patterns that should be
to the ant editor, i.e. build.xml, foobar.xml, install.xml ... 

Open the Outline View via Window | Show View | Outline
Now when a build script is opened with the ant editor, the target and
stuff are
listed in the Outline View, main target is marked blue.
The Outline View has several filters you may change to your like, i.e.
Hide Internal Target ( = only the main target is listed), Hide
Properties ...

here is a nice plugin that is sometimes helpful to get a better
understanding on
large and complex build scripts :

Regards, Gilbert

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message