You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Mike Medwith <mm...@hotmail.com> on 2003/04/03 18:07:53 UTC
Problem with vizant
I am having a problem with vizant, does anyone have any ideas on what this
means? I can write to the directory that I run the target from... Is there
another tools that work like vizant and draw pictures of all the targets and
dependencies?
Using the following target:
<taskdef name="vizant" classname="net.sourceforge.vizant.Vizant"/>
<target name="map_targets">
<vizant antfile="build.xml" outfile="/usr/local/home/mmedwith/build.dot"
from="reinstall_all"/>
</target>
I am getting the following error:
BUILD FAILED
java.lang.NullPointerException
at net.sourceforge.vizant.VizPrinter.replace(Unknown Source)
at net.sourceforge.vizant.VizPrinter.escapeId(Unknown Source)
at net.sourceforge.vizant.VizPrinter.getQuotedId(Unknown Source)
at net.sourceforge.vizant.VizPrinter.printTarget(Unknown Source)
at net.sourceforge.vizant.VizPrinter.printProject(Unknown Source)
at net.sourceforge.vizant.VizPrinter.print(Unknown Source)
at net.sourceforge.vizant.Vizant.print(Unknown Source)
at net.sourceforge.vizant.Vizant.writeDotToOutfile(Unknown Source)
at net.sourceforge.vizant.Vizant.execute(Unknown Source)
at org.apache.tools.ant.Task.perform(Task.java:319)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:610)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
Total time: 8 seconds
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
Re: Problem with vizant
Posted by Jacob Kjome <ho...@visi.com>.
Vizant requires a native library called GraphViz to also be
installed. Here is a target which will gracefully fail when GraphViz isn't
installed...
<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 >>>
http://www.research.att.com/sw/tools/graphviz/
</fail>
</target>
Jake
At 11:07 AM 4/3/2003 -0500, you wrote:
>I am having a problem with vizant, does anyone have any ideas on what this
>means? I can write to the directory that I run the target from... Is
>there another tools that work like vizant and draw pictures of all the
>targets and dependencies?
>
>
>Using the following target:
> <taskdef name="vizant" classname="net.sourceforge.vizant.Vizant"/>
> <target name="map_targets">
> <vizant antfile="build.xml"
> outfile="/usr/local/home/mmedwith/build.dot" from="reinstall_all"/>
> </target>
>
>
>I am getting the following error:
>BUILD FAILED
>java.lang.NullPointerException
> at net.sourceforge.vizant.VizPrinter.replace(Unknown Source)
> at net.sourceforge.vizant.VizPrinter.escapeId(Unknown Source)
> at net.sourceforge.vizant.VizPrinter.getQuotedId(Unknown Source)
> at net.sourceforge.vizant.VizPrinter.printTarget(Unknown Source)
> at net.sourceforge.vizant.VizPrinter.printProject(Unknown Source)
> at net.sourceforge.vizant.VizPrinter.print(Unknown Source)
> at net.sourceforge.vizant.Vizant.print(Unknown Source)
> at net.sourceforge.vizant.Vizant.writeDotToOutfile(Unknown Source)
> at net.sourceforge.vizant.Vizant.execute(Unknown Source)
> at org.apache.tools.ant.Task.perform(Task.java:319)
> at org.apache.tools.ant.Target.execute(Target.java:309)
> at org.apache.tools.ant.Target.performTasks(Target.java:336)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
> at org.apache.tools.ant.Main.runBuild(Main.java:610)
> at org.apache.tools.ant.Main.start(Main.java:196)
> at org.apache.tools.ant.Main.main(Main.java:235)
>
>Total time: 8 seconds
>
>
>_________________________________________________________________
>The new MSN 8: advanced junk mail protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org