Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001913graphvizDotpublic2010-06-21 16:492011-04-28 04:03
ReporterJavier Ortiz 
Assigned Toerg 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*-Windows-XP SP2OS Version
Summary0001913: dot.exe not available from ant
Description



For some reason the dot.exe is not available to ant.
I've been trying to follow this tutorial:
http://java.dzone.com/articles/reverse-engineer-source-code-u [^] and
http://netbeans.dzone.com/news/generate-uml-graphs-javadoc-ne [^]
but I can't get it to work. I get this error:
<CD>
Generating Z:\Netbeans\jWrestling Project\jWrestling\dist\javadoc\stylesheet.css...
UmlGraphDoc version 5.3, altering javadocs
Building Package view for package games.jwrestling.common
java.io.IOException: Cannot run program "dot": CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
        at java.lang.Runtime.exec(Runtime.java:593)
        at java.lang.Runtime.exec(Runtime.java:466)
        at org.umlgraph.doclet.UmlGraphDoc.runGraphviz(UmlGraphDoc.java:134)
        at org.umlgraph.doclet.UmlGraphDoc.generatePackageDiagrams(UmlGraphDoc.java:97)
        at org.umlgraph.doclet.UmlGraphDoc.start(UmlGraphDoc.java:65)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
        at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
        at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
        at com.sun.tools.javadoc.Start.begin(Start.java:128)
        at com.sun.tools.javadoc.Main.execute(Main.java:41)
        at com.sun.tools.javadoc.Main.main(Main.java:31)
</CD>



THe weird thing is that trying dot -V from the command promot is working.
Steps To Reproduce

 <mkdir dir="${dist.javadoc.dir}"/>
        <javadoc source="${javac.source}" packagenames="games.*" destdir="${dist.javadoc.dir}" private="true">
            <classpath>
                <path path="${javac.classpath}"/>
            </classpath>
            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
                <filename name="**/*.java"/>
            </fileset>
            <doclet name="org.umlgraph.doclet.UmlGraphDoc" path="${file.reference.UmlGraph-5.3.jar}">
                <param name="-attributes" />
                <param name="-operations" />
                <param name="-qualify" />
                <param name="-types" />
                <param name="-visibility" />
            </doclet>
        </javadoc>
Additional Information

[erg] The ant code apparently can't find where dot is installed. Not our problem.

[javier]
The only instructions are to have it in the class path and it is (the installer takes care of that). The weird thing is that dot is found from the command prompt.

I couldn't find a verification step from Graphviz to make sure is properly installed either.


[erg]
Since you can run dot from the command prompt, it is obviously installed correctly, and runs okay. So the problem
must be how
<CD>
   <apply executable="dot" dest="${reports.dir}" parallel="false">
</CD>

looks for and executes dot. For that, you'll need to contact an ant person or someone familiar with the semantics of <apply>.

TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID1986
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed
VERSION     2.26.3
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => erg


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker