tldr/pages.zh/common/javadoc.md

17 lines
497 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# javadoc
> 从源代码以 HTML 格式生成 Java API 文档。
> 更多信息见https://docs.oracle.com/javase/9/javadoc/javadoc-command.htm>.
- 生成 Java 源代码的文档并将结果保存在文件夹中:
`javadoc -d {{path/to/directory/}} {{path/to/java_source_code}}`
- 生成指定编码的文档:
`javadoc -docencoding {{UTF-8}} {{path/to/java_source_code}}`
- 生成文档时,排除掉某些软件包:
`javadoc -exclude {{package_list}} {{path/to/java_source_code}}`