wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant - target hierarchy of build.xml file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant - target hierarchy of build.xml file." Watch "Ant - target hierarchy of build.xml file." New topic
Author

Ant - target hierarchy of build.xml file.

Guy Roth
Ranch Hand

Joined: Aug 09, 2009
Posts: 74
I have got a long build.xml that contains plenty of targets. Some of them already not in use.

Is there any tool that can be used to figure which ant targets are being called inside this file. (of course that it won't be able to figure which targets are for external use that is being called from outside but with those I'll handle).

I open the build file in eclipse (version 3.5) but there is no such assisting tool.

Does anyone know of a tool that does it?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Search for "ant +graphviz"; there are at least three tools that will use GraphViz to draw a target dependency graph.
Guy Roth
Ranch Hand

Joined: Aug 09, 2009
Posts: 74
I knew that the ranch won't fail me.
What a briliant people here.

I indeed found this: http://vizant.sourceforge.net
And this is even more than I expected.

Thanks!

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant - target hierarchy of build.xml file.
 
Similar Threads
If IDE Why use ANT
Executing multiple targets in subprojects
Ant cannot find file, but it's there
.classpath and ant
Eclipse and ANT