ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: Adding vizant tag to ant tag set?
Date Wed, 01 Oct 2003 03:50:10 GMT
At 05:07 PM 9/30/2003 -0700, you wrote:
>If you have made <vizant> work in your build.xml files, and have any tips for
>me, please send me clues.

Sure, how about this...

1.  Download:
http://umn.dl.sourceforge.net/sourceforge/vizant/vizant.jar

2.  Either put vizant.jar in ANT_HOME/lib or create a property called 
"vizant.jar" and use it like I have below in the "classpath" attribute for 
the taskdef.

3.  Run the following target (modified based on what you decide in #2)....

     <target name="vizant">
         <taskdef name="vizant" classname="net.sourceforge.vizant.Vizant" 
classpath="${vizant.jar}"/>
         <vizant antfile="build.xml" outfile="build.dot"/>
         <exec executable="dot" failifexecutionfails="false" 
resultproperty="graphvizSuccess!">
             <arg line="-Tpng build.dot -o build.png"/>
         </exec>
         <fail unless="graphvizSuccess!">
         You probably need to install GraphViz which is a native program,
         not a Java library &gt;&gt;&gt; 
http://www.research.att.com/sw/tools/graphviz/
         </fail>
     </target>

4.  If you get the "fail" message, download the native graphviz program for 
your platform and make sure the executable is in your system path.

After doing the above, everything should work for you.

Jake 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message