advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
Partners & Affiliates
advertisement
advertisement
Tip of the Day
Average Rating: 1/5 | Rate this item | 1 user has rated this item.
Expertise: Advanced
Language: XML
July 19, 2004
Generate a Graph of Your Ant File Targets with Vizant
When you're dealing with huge Ant files, it can be difficult to follow targets and their dependencies. Luckily, there's a tool called Vizant that can generate a graph of your Ant file targets. You simply specify the name of your Ant file, and voila—Vizant generates the graph for you.

Here is an example of a Vizant file:


<project name="vizfile" default="main">
<taskdef name="vizant" classname="net.sourceforge.vizant.Vizant" classpath="C:/Java/vizant-
0.1.1/vizant.jar"/>
<target name="main">
<vizant antfile="./build.xml" outfile="build.dot">
<attrstmt type="graph"> <!-- make graph larger -->
<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>
Assume your Ant build file is build.xml in the same path as this file. The above file defines a task called vizant, that is loaded from the specified class in the vizant.jar file. This file is run by executing the target main which generates the graph in build.jpg.
Puneet Sangal
If you have a hot tip and we publish it, we'll pay you. However, due to accounting overhead we no longer pay $10 for a single tip submission. You must accumulate 10 acceptable tips to receive payment. Be sure to include a clear explanation of what the technique does and why it's useful. If it includes code, limit it to 20 lines if possible. Submit your tip here.
Please rate this item (5=best)
 1  2  3  4  5
advertisement
advertisement
Advertising Info  |   Member Services  |   Permissions  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs