[osmosis-dev] uml for ducumentation

Martin Schafran martin at ampelmeter.com
Tue Apr 30 13:18:19 UTC 2013


hi,

for osmosis newbies who don't have the ultimate version of idea its helpful to 
have an uml diagram. 
and eclipse plugins just don't work.
feel free to improve this script and include some graph to the repository:

#!/bin/bash

# download umlgraph from http://www.umlgraph.org/

# edit the path to your UMLGraph directory 
umlhome=/home/m/bin/UMLGraph-5.6

drawgraph () {
  # files to be included into graph
  filetree=$(tree -fiP *.java | grep "/main/" | grep "\.java")
  # create dot file
  java -classpath $umlhome/lib/UmlGraph.jar:$JAVA_HOME/lib/tools.jar 
org.umlgraph.doclet.UmlGraph -private $filetree
  # convert dot file to png
  dot -Tpng -ograph.png graph.dot
}

cd osmosis-apidb               
drawgraph
cd ../osmosis-areafilter      
drawgraph
cd ../osmosis-core            
drawgraph
cd ../osmosis-pgsimple              
drawgraph
cd ../osmosis-tagfilter
drawgraph
cd ../osmosis-hstore-jdbc                     
drawgraph
cd ../osmosis-pgsnapshot            
drawgraph
cd ../osmosis-tagtransform
drawgraph
cd ../osmosis-osm-binary       
drawgraph
cd ../osmosis-replication  
drawgraph
cd ../osmosis-replication-http            
drawgraph
cd ../osmosis-dataset         
drawgraph
cd ../osmosis-pbf 
drawgraph
cd ../osmosis-pbf2             
drawgraph
cd ../osmosis-xml
drawgraph
cd ../osmosis-set   
drawgraph
cd ../osmosis-extract                                  
drawgraph

exit 0


martin



More information about the osmosis-dev mailing list