每次给出 Generate JavaDoc 命令时,javadoc 是否扫描所有 类?
Does javadoc scans all the classes everytime Generate JavaDoc command is given?
我正在使用 IntelliJ
并生成 JavaDoc
如下所示。
这是否会为所有 类 生成 html,所有的时间都是这样做的?不同于编译器只编译 changed/modified 文件并在所有文件都是最新的情况下拒绝编译的方式?我问这个是因为它需要很多时间才能完成并且日志包含很多 类 而不是仅编辑过的
当我 select File
选项时(假设更新只会发生在该文件的 html 上),index.html 现在只包含该特定文件。
JavaDoc 似乎不支持增量构建。每次都会生成一个新文档。
来自 JavaDoc 常见问题解答:
https://www.oracle.com/technetwork/java/javase/documentation/index-137483.html#incrementalbuild
A9. Can I incrementally build a document from different runs of Javadoc?
Basically no, but there is a link feature that may provide what you need. First of all, Javadoc generates one and only one document each time you run it. It cannot modify or directly incorporate results from previous runs of Javadoc.
我正在使用 IntelliJ
并生成 JavaDoc
如下所示。
这是否会为所有 类 生成 html,所有的时间都是这样做的?不同于编译器只编译 changed/modified 文件并在所有文件都是最新的情况下拒绝编译的方式?我问这个是因为它需要很多时间才能完成并且日志包含很多 类 而不是仅编辑过的
当我 select File
选项时(假设更新只会发生在该文件的 html 上),index.html 现在只包含该特定文件。
JavaDoc 似乎不支持增量构建。每次都会生成一个新文档。
来自 JavaDoc 常见问题解答:
https://www.oracle.com/technetwork/java/javase/documentation/index-137483.html#incrementalbuild
A9. Can I incrementally build a document from different runs of Javadoc?
Basically no, but there is a link feature that may provide what you need. First of all, Javadoc generates one and only one document each time you run it. It cannot modify or directly incorporate results from previous runs of Javadoc.