UMLGraph
http://www.umlgraph.org/index.html
https://github.com/dspinellis/UMLGraph
Installation on CentOS
1 #!/bin/sh
2 #
3 # Unix shell script to run UMLGraph on the specified base file name
4 # For this to work you must adjust the following defintion of
5 # UMLGRAPH_HOME to point to the directory where UmlGraph.jar is installed.
6 #
7 #
8 UMLGRAPH_HOME=/usr/local/lib
9 JAVA_HOME=/usr/java/default
10 echo "Current UMLGraph Home $UMLGRAPH_HOME"
11 echo "Current Java Home $JAVA_HOME"
12
13 if [ x$2 = x ]
14 then
15 echo usage: umlgraph base_file_name filetype [umlgraph arguments] 1>&2
16 echo example: umlgraph MyClass png 1>&2
17 echo '(The above will convert MyClass.java into MyClass.png)' 1>&2
18 exit 1
19 else
20 BASE=$1
21 FILETYPE=$2
22 shift 2
23 java -classpath "$UMLGRAPH_HOME/UmlGraph.jar:$JAVA_HOME/lib/tools.jar" \
24 org.umlgraph.doclet.UmlGraph -package $* -output - $BASE.java |
25 dot -T$FILETYPE -o$BASE.$FILETYPE
26 fi
Generate DOT file (GraphViz) for class Options.java
- cd ~/tmp/UMLGraph/src/main/java/org/umlgraph/doclet
- umlgraph Options dot