Reputation: 2405
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)
Upvotes: 3
Views: 1687
Reputation: 5561
Use the sourcefiles parameter instead of sourcepath:
<javadoc
sourcefiles="jig-engine/src/path/to/your/file.java"
destdir="${target.path}/docs/javadoc/">
</javadoc>
Upvotes: 3