I am following Meera Subbarao to create java docs using umlgraph but getting this error message:
build.xml: Reference java.classpath not found.
Could somebody help me find what I am doing wrong?
Thanks in advance for helping me out.
My ant target is:
<target name="javadocs" description="generates javadoc and also UML Diagram">
<mkdir dir="${reports.dir}/javadoc"/>
<javadoc sourcepath="${src.dir}"
packagenames="com.myproject.*"
destdir="${reports.dir}/javadoc"
classpathref="java.classpath"
private="true">
<doclet name="org.umlgraph.doclet.UmlGraphDoc" path="lib/UMLGraph.jar">
<param name="-attributes" />
<param name="-operations" />
<param name="-qualify" />
<param name="-types" />
<param name="-visibility" />
</doclet>
</javadoc>
<apply executable="dot" dest="${reports.dir}" parallel="false">
<arg value="-Tpng"/>
<arg value="-o"/>
<targetfile/>
<srcfile/>
<fileset dir="${reports.dir}" includes="*.dot"/>
<mapper type="glob" from="*.dot" to="*.png"/>
</apply>
</target>
The reason for the error message here is this attribute on your javadoc element:
classpathref="java.classpath".To use this, you have to define a
pathelement in your build file withid="java.classpath", like this: