AntViz2 Wiki
A Tool to Visualize the Execution of Apache-Ant Projects
Status: Beta
Brought to you by:
gguta
You have the following build files:
build.xml:
<project name="Test" default="test-2"> <description>Test project</description> <import file="import-test.xml"/> <target name="test-1" depends="imp1" description="Test 1"> <echo>Hello World!</echo> </target> <target name="test-2" depends="test-1" description="Test 2"> <echo>Hallo Welt!</echo> </target> <target name="test-3" depends="test-1" description="Test 3"> <echo>Szia Vilag!</echo> </target> </project>
import-test.xml:
<project name="Imp1" default="imp1"> <target name="imp1" description="Test Init"> <echo>Imp1 World!</echo> </target> </project>
Executing the command 'ant -listener hu.gaboo.antviz2.GraphListener' results the following output in the dependency.gv file:
digraph G { 1 [ label="imp1" color="red" ]; 2 [ label="Imp1.imp1" ]; 3 [ label="test-3" ]; 4 [ label="test-1" color="red" ]; 5 [ label="test-2" color="red" ]; 3 -> 4 [ label="1" ]; 5 -> 4 [ label="1" ]; 4 -> 1 [ label="1" ]; }
This can be visualized with GraphViz.