我正在使用 IntelliJ
并生成 JavaDoc
,如下所示。
这是否会一直为所有类生成 html?与编译器仅编译更改/修改的文件不同,如果所有文件都是最新的,则拒绝编译?我问这个问题是因为它需要很多时间才能完成,并且日志包含很多类,而不仅仅是编辑过的类。
当我选择"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.
关于java - 每次给出“生成 JavaDoc”命令时,javadoc 是否都会扫描所有类?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57388478/