How can I modify the standard doclet to produce links to source code from the API documentation?
NOTE – Javadoc 1.4 solves this problem with the -linksource option that provides links to HTML versions of the source code. NOTE – The following example was written for Javadoc 1.2. The standard doclet code has changed enough in 1.3 to make this example not work. If anyone has updated this example for 1.3 and would like to publish those changes, please notify us and we will post it here. Let’s say you want to change how the standard doclet works, such as adding a custom tag or modifying its generated HTML output. If possible, your first approach should be to subclass the standard doclet. By not changing any of the classes in the standard doclet, this provides an easier upgrade path when we release a new version of the standard doclet. However, sometimes it is not possible to get the behavior you want merely by subclassing — in that case you would need to copy the standard doclet and modify its classes directly. It would be wise to rename the starting class for this doclet from Standar
NOTE – Javadoc 1.4 solves this problem with the -linksource option that provides links to HTML versions of the source code. NOTE – The following example was written for Javadoc 1.2. The standard doclet code has changed enough in 1.3 to make this example not work. If anyone has updated this example for 1.3 and would like to publish those changes, please notify us and we will post it here. Let’s say you want to change how the standard doclet works, such as adding a custom tag or modifying its generated HTML output. If possible, your first approach should be to subclass the standard doclet. By not changing any of the classes in the standard doclet, this provides an easier upgrade path when we release a new version of the standard doclet. However, sometimes it is not possible to get the behavior you want merely by subclassing — in that case you would need to copy the standard doclet and modify its classes directly. It would be wise to rename the starting class for this doclet from Standar