Javadoc is only one class in a package using Ant

I am using apache ant to generate javadoc for my project. I have several classes in one of my packages, and I only want to show it. How can I do it? 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
source share
1 answer

Use the sourcefiles parameter instead of the sourcepath:

<javadoc
    sourcefiles="jig-engine/src/path/to/your/file.java"
    destdir="${target.path}/docs/javadoc/">
</javadoc>
+3
source

Source: https://habr.com/ru/post/1702496/


All Articles