Search code examples
javanetbeansjavadoc

How do I exclude a specific package from Javadoc in NetBeans?


NetBeans generates Javadoc for all packages in the project. Adding the "-exclude" Javadoc option in the documentation form of the project properties under "Additional Javadoc Options" does not seem to work. How do I tell netBeans to exclude a specific package from the Javadoc?


Solution

  • I would try edit -javadoc-build target in the ant build script. On the Files tab browse your project and find nbproject/build-impl.xml, in this file find -javadoc-build target and replace ${excludes} variable in the fileset attribute called excludes with your desired package.

    Ant fileset spec.