-----Original Message----- From: mjdenham [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 20, 2007 7:25 PM To: user@ant.apache.org Subject: Specify non-top level target
/* My ant build file is getting quite long and has a lot of targets. When I view the ant file in Eclipse it can be difficult to see which targets are the top-level ones which I would call and which are just helper targets like "init". Is it possible to remove some of the "targets" from the external interface 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 combine 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 Associations and Add a comma separated list of file name patterns that should be associated to the ant editor, i.e. build.xml, foobar.xml, install.xml ... second= 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 ... third= here is a nice plugin that is sometimes helpful to get a better understanding on large and complex build scripts : http://www.yworks.com/en/products_antexplorer_eclipse.htm Regards, Gilbert --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]