| CARVIEW |
|
sorcerer
|
| Summary | Java source code cross reference generator |
|---|---|
| Categories | None |
| License | The MIT License |
| Owner(s) | kohsuke |
Sorcerer
Sorcerer is a source code cross reference generator. It analyzes a set of Java source files and produce HTML files that shows annotated source code. Unlike some of the other similar tools like JXR, sorcerer understands Java AST like IDEs, and therefore provide much richer navigation in the HTML files. For example, you can jump to the definition to the method from every invocation (it even handles overloaded methods correctly), or jump to the derived classes from any class, etc.
Take a look at the sample report to see it in action.
Running sorcerer requires JDK6.
Features
- Sorcerer builds Java AST, and therefore its navigation parallels that of modern IDEs.
- Jump to subclasses, overriding methods, etc.
- Usable clean URLs. Every declaration has a permalink.
Using sorcerer from CLI
A typical invocation of sorcerer would look like the following:
$ java -jar sorcerer.jar -d path/to/output -cp $CLASSPATH path/to/srcdir
Notice that sorcerer can generate a better report if it has access to the dependency jar files. For the list of complete options, run sorcerer.jar without any argument.
Using sorcerer from Ant
Sorcerer comes with Ant task for automation.
... list of dependency jar files, just like you'd specify it for javac ...
For more information about the Ant task, see this document.
Using sorcerer from Maven
Sorcerer has a Maven plugin for those projects that use Maven2. To use this, add the following to your pom.xml
org.jvnet.sorcerer maven-sorcerer-plugin
You'd also need to have the java.net maven2 repository in your registered repository list, so that you can download the latest version of the plugin automatically. See this document for more about how to do that.
For more information about the maven task, see this document.
Acknowledgements
- Sorcerer is built on top of javac tree API.
- Icons are licensed under Eclipse Public License.
| Powered by CollabNet | Feedback |
FAQ |
Press |
Developer tools
© 1995 - 2007 CollabNet. CollabNet is a registered trademark of CollabNet, Inc. |

Download