JCite makes it possible to cite snippets of Java source code in your HTML documents (API documentation, for instance). The snippets are copied out of Java class source files, which should be part of the regular build. This guarantees that the cited snippets are always up-to-date. If you cite from unit tests, you even get the guarantee that they still work correctly. Finally, thanks to the excellent Java2Html library, the cited snippets get automatic syntax highlighting.

Changes

A proper Ant task and support for using citations as tripwires (see Using Citations As Tripwires) were added. Minor fixes were made.

URL: JCite – Java Source Code Citation System