tags:

views:

222

answers:

1

I am using apache ant to generate javadoc for my project. I have a number of classes in one of my packages and I only want to show one. How do I do this? Here is my current code.

<javadoc
    sourcepath="jig-engine/src"
    destdir="${target.path}/docs/javadoc/"
    packagenames="jig.engine.util.Vector2D" >
</javadoc>

(simplified for clarity)

+3  A: 

Use the sourcefiles parameter instead of sourcepath:

<javadoc
    sourcefiles="jig-engine/src/path/to/your/file.java"
    destdir="${target.path}/docs/javadoc/">
</javadoc>
James Van Huis