Where can you download the source for the standard JavaDoc doclet for current releases (1.5 or 1.6)

非 Y 不嫁゛ 提交于 2019-12-05 10:40:55
FrVaBe

Here you will find a hint to The Source for the Standard Doclet and a note that The source files are located in the directory src/share/classes/com/sun/tools/doclets. In fact, the subdirectory to consider might be langtools.

The linked JDK Source Code Release is a bit outdated. A actual JDK source code download can be done from here. If you download and install the jdk-6u23-fcs-src-b05-jrl-12_nov_2010.jar file you will find what you are looking for at the location explained above.

A Google search for HtmlDoclet.java gave me this.

Note that's from the OpenJDK.

You can download the Java 7 source here: http://jdk7.java.net/source.html

In the zip I found the standard doclet here: openjdk/langtools/src/share/classes/com/sun/tools/doclets/standard/

From the repository, if you have Mercurial installed:

hg clone http://hg.openjdk.java.net/jdk7/jdk7/langtools jdk7_langtools

(replace 7 with 6 if you want the version from Java 6)

Go to the directory src/share/classes/com/sun/tools/doclets

Guidelines for the repository paths are here. The license is GPL2, so it's possible to use it and even distribute, provided that the source code is always distributed along with the jar.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!