forked from dspinellis/UMLGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathumlgraph
More file actions
executable file
·31 lines (28 loc) · 812 Bytes
/
umlgraph
File metadata and controls
executable file
·31 lines (28 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
#
# Unix shell script to run UMLGraph on the specified base file name
# For this to work you must adjust the following defintion of
# UMLGRAPH_HOME to point to the directory where UmlGraph.jar is installed.
#
#
UMLGRAPH_HOME=lib
# Obtain a classpath path separator that works for Unix and Cygwin
if expr "$JAVA_HOME" : '.*:' >/dev/null ; then
CPS=';'
else
CPS=':'
fi
if [ x$2 = x ]
then
echo usage: umlgraph base_file_name filetype [umlgraph arguments] 1>&2
echo example: umlgraph MyClass png 1>&2
echo '(The above will convert MyClass.java into MyClass.png)' 1>&2
exit 1
else
BASE=$1
FILETYPE=$2
shift 2
java -classpath "$UMLGRAPH_HOME/UmlGraph.jar${CPS}$JAVA_HOME/lib/tools.jar" \
org.umlgraph.doclet.UmlGraph -package $* -output - $BASE.java |
dot -T$FILETYPE -o$BASE.$FILETYPE
fi