How to generate Javadoc of only one package

I only generate a specific package through NetBeans Javadoc If I press the panel "generate JavaDocs", I get JavaDocs for all projects Instead, I just want a bag

Solution

You can use the package names parameter Syntax:

javadoc [ options ] [ packagenames ] [ sourcefilenames ] [ -subpackages pkg1:pkg2:... ] [ @argfiles ]

Documentation:

You can apply this parameter to [right-click project] > Properties > build > record. You can provide additional parameters, but when I need it now, I just manually (command line). I conclude that NetBeans provides the source package as the parameter of Javadoc

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>