Reputation: 2337
I'm interested in changing the standard JavaDoc Doclet to generate some additional documentation before the normal output of tags. Looking at the code (using a decompiler) I can see that my only real option is to download the source for HtmlDoclet and friends and make a few modifications ... but the only source that's available is for the 1.3 version of the code, which doesn't understand recent updates such as annotations and so forth.
Upvotes: 5
Views: 5439
Reputation: 49361
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.
Upvotes: 4
Reputation: 7896
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.
Upvotes: 2
Reputation: 12710
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/
Upvotes: 3
Reputation: 272417
A Google search for HtmlDoclet.java
gave me this.
Note that's from the OpenJDK.
Upvotes: 3