Created
May 12, 2016 18:46
-
-
Save chabala/c7cf6939573656bb4423b139f1832570 to your computer and use it in GitHub Desktop.
Using Visant to graph Ant target dependencies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project name="vizfile" default="main"> | |
<taskdef name="vizant" | |
classname="net.sourceforge.vizant.Vizant" | |
classpath="${user.home}/.m2/repository/net/sourceforge/vizant/vizant/0.1.2/vizant-0.1.2.jar"/> | |
<target name="main"> | |
<vizant antfile="./build.xml" outfile="build.dot"> | |
<attrstmt type="graph"> | |
<attr name="ranksep" value="1.2"/> | |
<attr name="nodesep" value="0.5"/> | |
</attrstmt> | |
</vizant> | |
<exec executable="dot"> | |
<arg line="-Tjpg build.dot -o build.jpg"/> | |
</exec> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with
ant -f vizfile.xml
.Visant isn't in Maven, so you'll need to download the jar and put it somewhere yourself. I installed it in my local Maven repo at the logical place.