https://github.com/abargnesi/javainspect
Fork of Svjatoslav Agejenko's work ... http://www2.svjatoslav.eu/gitbrowse/javainspect/doc/index.html
https://github.com/abargnesi/javainspect
Last synced: 3 months ago
JSON representation
Fork of Svjatoslav Agejenko's work ... http://www2.svjatoslav.eu/gitbrowse/javainspect/doc/index.html
- Host: GitHub
- URL: https://github.com/abargnesi/javainspect
- Owner: abargnesi
- License: lgpl-3.0
- Created: 2016-09-22T17:03:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-22T17:45:46.000Z (over 8 years ago)
- Last Synced: 2025-01-12T17:47:37.368Z (5 months ago)
- Language: Java
- Size: 1.16 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# JavaInspect
Visualize java class relationships as Graphviz.
Forked from the original work from [Svjatoslav Agejenko](http://www.svjatoslav.eu/).
This repository only provides minor improvements.Original [git repository](http://www2.svjatoslav.eu/repositories/javainspect.git)
Original [documentation](http://www2.svjatoslav.eu/gitbrowse/javainspect/doc/index.html)
Minor enhancements:
- Provides java main to run as CLI tool.
- Produces single executable with dependencies.
- Default to render SVG.
- Default to output to `user.dir` (i.e. working directory).### Building
1. Install [Maven](http://maven.apache.org/).
2. Package JAR:`mvn clean package`
### Running
1. You will need to add the classes would like to visualize to your classpath.
2. Provide a package glob pattern to identify the classes you want to visualize.
3. Name your output.```bash
java \
-cp .:./example/target/myproject-0.0.jar:./target/javainspect-1.6-SNAPSHOT.jar \
eu.svjatoslav.inspector.java.methods.Main \
./example/src/main/java/ com.myproject.* myproject
```Here we want to visualize _com.myproject.*_ classes found in
*./example/src/main/java/*. The resulting *dot* and *svg*
file will be prefixed with *myproject*.### Output example

The [dot](https://github.com/abargnesi/javainspect/raw/master/myproject.dot) file is also saved.