| 
  
   Size: 1484 
  
  Comment:  
 | 
  
   Size: 1510 
  
  Comment:  
 | 
| Deletions are marked like this. | Additions are marked like this. | 
| Line 50: | Line 50: | 
{{{#!GraphViz dot }}}  | 
UMLGraph
http://www.umlgraph.org/index.html
https://github.com/dspinellis/UMLGraph
Installation on CentOS
- cd ~
 - mkdir tmp
 - cd tmp
 - cd UMLGraph/
 - mvn clean compile package
 - cp target/umlgraph-5.7.3-SNAPSHOT.jar /usr/local/lib/UmlGraph.jar
 - cp umlgraph /usr/local/bin/
 - chmod 755 umlgraph /usr/local/bin/umlgraph
 - vi /usr/local/bin/umlgraph
 
   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
 
GraphViz:
Could not derive graph name from graph script. Check the syntax, please!
