Javadoc无法识别doctitle选项/标志

ras*_*ayu 4 javadoc

我通过gradle运行带有doclet的javadoc,当我运行我的javadoc/doclet任务时,我收到下一个错误:

error - invalid flag: -doctitle
Run Code Online (Sandbox Code Playgroud)

然后,下一个使用表

usage: javadoc [options] [packagenames] [sourcefiles] [@files]
-overview <file>          Read overview documentation from HTML file
-public                   Show only public classes and members
-protected                Show protected/public classes and members (default)
-package                  Show package/protected/public classes and members
-private                  Show all classes and members
-help                     Display command line options and exit
-doclet <class>           Generate output via alternate doclet
-docletpath <path>        Specify where to find doclet class files
-sourcepath <pathlist>    Specify where to find source files
-classpath <pathlist>     Specify where to find user class files
-exclude <pkglist>        Specify a list of packages to exclude
-subpackages <subpkglist> Specify subpackages to recursively load
-breakiterator            Compute 1st sentence with BreakIterator
-bootclasspath <pathlist> Override location of class files loaded
                          by the bootstrap class loader
-source <release>         Provide source compatibility with specified release
-extdirs <dirlist>        Override location of installed extensions
-verbose                  Output messages about what Javadoc is doing
-locale <name>            Locale to be used, e.g. en_US or en_US_WIN
-encoding <name>          Source file encoding name
-quiet                    Do not display status messages
-J<flag>                  Pass <flag> directly to the runtime system
Run Code Online (Sandbox Code Playgroud)

有没有人知道为什么Javadoc不接受那面旗帜?理论上,我从jdk1.6的tools.jar运行javadoc.我认为这是javadoc总是接受doctitle选项的东西.感谢您的时间!

编辑:该doctitle选项是标准Doclet的一部分,因此看起来我无法访问Standard Doclet选项.

ras*_*ayu 5

编辑:

得到它了!问题出在Doclet本身.我没有扩展标准Doclet("公共类MyDoclet扩展标准{"),因此标准Doclet中的标志不可用(并且doctitle是标准Doclet标志的一部分).

感谢Paulo让我"重新思考"我的回答:-)