This RFE has been implemented. I have added two command-line flags to javadoc:
Which causes javadoc to include the named package and all subpackages; and
Which causes javadoc to unconditionally exclude the named package
from the list of packages to document even if it would otherwise
be included by some previous or later -subpackages command-line
flag. For example
-exclude java.lang.ref -subpackages java
Would include java.io, java.util, java.lang, etc, but not java.lang.ref.
Can someone write a wrapper in Java to perform this function?
There is a huge demand from the JDC for this functionality and it
should be added to the tool itself. For backward compatibility
this functionality will require a flag and a flag or flags will
be needed to exclude packages.
Raised priority from 5 to 4 and added workaround.
Add option -recurse so that the default is to not recurse, for backward
compatibility. However, if we require package names, then you
could not run javadoc on all the java.* packages: javadoc -recurse java
since "java" is not a package.
Or should -exclude take a package or class name, so you could
combine it with -recurse: javadoc -recurse package1 -exclude package2
This should work at the member level, class level or package level.
Further design and discussion needed - fix in 1.3.
Because this is so highly requested, how about if we write a wrapper to do
this for Merlin (1.4), then add it to Javadoc later.
This RFE has been implemented. Location of implemetation:
For those who need this feature because they have hit the
command line-length limit (1000 characters on Windows),
we have already implemented a different solution for that --
the @file argument which points to a file that can contain the
rest of the arguments. This works in 1.2 Beta4. For more