Jeanne Boyarsky
19-01-2012, 23:14
Our team was trying to write a custom target in the NetBeans build.xml. Since there were so many targets in the sunspot build.xml it calls, it was making my heads spin thinking about the interactions. So I turned it into a visual dependency graph.
Sharing in case anyone else is reading the xml:
PDF showing all the targets (http://www.selikoff.net/wp-content/uploads/2012/01/sun-spot-frc.pdf) and their dependencies. (This is a really tiny font, you need to zoom in and scroll around.)
Blog post (http://www.selikoff.net/2012/01/19/ant-dependency-graphing-with-graphviz/) on how I created this.
Ant terminology for anyone reading this who is confused:
build.xml - the name of the file containing instructions on how to build/package/deploy the java code
target - kind of like a method except in XML and it gets called differently
sunspot build.xml - comes with the plugins - has many targets and calls/includes other xml files with even more targets
Sharing in case anyone else is reading the xml:
PDF showing all the targets (http://www.selikoff.net/wp-content/uploads/2012/01/sun-spot-frc.pdf) and their dependencies. (This is a really tiny font, you need to zoom in and scroll around.)
Blog post (http://www.selikoff.net/2012/01/19/ant-dependency-graphing-with-graphviz/) on how I created this.
Ant terminology for anyone reading this who is confused:
build.xml - the name of the file containing instructions on how to build/package/deploy the java code
target - kind of like a method except in XML and it gets called differently
sunspot build.xml - comes with the plugins - has many targets and calls/includes other xml files with even more targets