Visualize dependencies between Ant targets

  1. Get the ant2dot XSLT stylesheet.
  2. Run it using xsltproc which comes with libxml: $ xsltproc ~/software/ant2dot.xsl build.xml >
  3. Generate a picture from the GraphViz dot file: $ dot -Tpng -o build.xml.png.

The main clues about how to read it, from the ant2dot website:

1. the various TARGETS in the build script are visualized as rectangular nodes
2. the default TARGET in the script is highlighted as a node with a dashed border
3. the target DEPENDENCIES are visualized as solid edges between the nodes
4. the target DEPENDENCIES are numbered on the graph


Tags: , , , , ,

%d bloggers like this: