Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences

Edit this page


Referenced by
AppFuseSupport




JSPWiki v2.2.33

[RSS]


Hide Menu

SetupVizant


This page is designed to demonstrate how to setup Vizant in AppFuse.

1. Download vizant.jar and put it in lib/vizant-0.1.1/vizant.jar.

2. Define the vizant.jar in lib/lib.properties:

#
# Vizant - http://vizant.sf.net
#
vizant.version	= 0.1.1
vizant.dir=${lib.dir}/vizant-${vizant.version}
vizant.jar=${vizant.dir}/vizant.jar

3. Add the "vizant" target in build.xml:

    <!-- Visant task for visualizing Ant tasks -->
    <target name="vizant">
        <taskdef name="vizant" classname="net.sourceforge.vizant.Vizant" 
            classpath="${vizant.jar}"/>
        <mkdir dir="${build.dir}/vizant"/>
	<vizant antfile="build.xml" outfile="${build.dir}/vizant/build.dot" 
            from="deploy" to="init">
            <attrstmt type="node">
                <attr name="style" value="filled"/>
                <attr name="shape" value="egg"/>
                <attr name="color" value="grey90"/>
            </attrstmt>
        </vizant>
        <exec executable="dot">
            <arg line="-Tpng ${build.dir}/vizant/build.dot -o 
                       ${build.dir}/vizant/deploy.png"/>
        </exec>
    </target>

4. Adjust "from" and "to" attributes in the <vizant> task to fit with the targets you want to diagram.

5. Download and install Graphviz.

6. Run "ant vizant".



Go to top   Edit this page   More info...   Attach file...
This page last changed on 06-Nov-2006 13:52:58 MST by MattRaible.