我正在通过 gradle 使用我的 doclet 运行 javadoc,当我运行我的 javadoc/doclet 任务时,我收到下一个错误:
error - invalid flag: -doctitle
之后,下一个使用表
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
有没有人知道为什么 Javadoc 不接受该标志?理论上,我从 jdk1.6 的 tools.jar 运行 javadoc。我认为 javadoc 总是会接受该 doctitle 选项。感谢您的时间!
编辑:那个 doctitle 选项是标准 Doclet 的一部分,所以看起来我无法访问标准 Doclet 选项。