Javadocs 链接到外部 javadoc [英] Javadocs link to external javadoc

查看:35
本文介绍了Javadocs 链接到外部 javadoc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在生成 Javadoc.现在我想自动将所有库和 JDK 类链接到该库或 JDK 的官方文档.这可能吗,如果可以,我需要哪些命令行参数

I am generating Javadocs. Now I would like to automatically link all library- and JDK classes to the official docs of that lib or JDK. Is that possible, and if so, which command line args do i need

推荐答案

解析对标准 Java 类的引用要求您拥有 Java 文档的本地副本.

Resolving references to the standard Java classes requires you have a local copy of the Java Docs.

JDK 7 JavaDocs 可在此处在附加下获得资源

The JDK 7 JavaDocs are available here under Additional Resources

然后,使用 -link 选项运行 javadoc.它需要您要引用的文档的 URL(例如,https://docs.oracle.com/javase/7/docs/api/).

Then, run javadoc, with the -link option. It takes the URL of the documents you want to reference (ex, https://docs.oracle.com/javase/7/docs/api/).

这篇关于Javadocs 链接到外部 javadoc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆