a little help with proDOC
in
Integration and Hardware
•
1 years ago
I'm trying to use proDOC to generate documentation for my project. I'm running it from ant. However, I have yet to successfully run it despite have tried a couple variations on the basic idea.
With this, where the ext directory contains a prodoc.jar file that I created from the prodoc source:
<javadoc
sourcepath=
"src"
destdir=
"prodoc">
<classpath
refid=
"deps.path"/>
<doclet
name="prodoc.StartDoclet"
path="ext"
/>
</javadoc>
I get:
javadoc: error - Cannot find doclet class prodoc.StartDoclet
With this, where ext/prodoc is the directory containing the contents of the zip file on the proDOC website:
<javadoc
sourcepath=
"src"
destdir=
"prodoc">
<classpath
refid=
"deps.path"/>
<doclet
name="prodoc.StartDoclet"
path="ext/prodoc"
/>
</javadoc>
I get:
javadoc: error - invalid flag: -d
With this, where ext/prodoc/prodoc is the directory that contain the proDOC java and class files:
<javadoc
sourcepath=
"src"
destdir=
"prodoc">
<classpath
refid=
"deps.path"/>
<doclet
name="prodoc.StartDoclet"
path="ext/prodoc/prodoc"
/>
</javadoc>
I get:
javadoc: error - Cannot find doclet class prodoc.StartDoclet
And finally if I change the name to just "StartDoclet", I get:
java.lang.NoClassDefFoundError: StartDoclet (wrong name: prodoc/StartDoclet)
Not really sure what the difference between "Cannot find doclet class" and the NoClassDefFoundError is, though. So, what am I doing wrong?
1