View Single Post
  #4 (permalink)  
Old March 18th, 2007
arne_bab's Avatar
arne_bab arne_bab is offline
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

We need to make it a bit cleaner. With all "use-dependencies", it is a bit intimidating

As short-lived option, you can use JavaDoc and Graphviz directly:

You need Graphviz on your computer: http://www.graphviz.org/
- the command for Graphviz is "dot"

Also you need UMLGraph: http://www.spinellis.gr/sw/umlgraph/
-> http://www.spinellis.gr/sw/umlgraph/UMLGraph-4.6.tar.gz
-> http://www.spinellis.gr/sw/umlgraph/...lGraph-4.6.jar
- the jar needs to be in ../javadoc for the following command to work.

With that and the bash (*nix) you can create UML diagrams with the following command (from inside the phex-svn-folder, i.e. trunk):

Code:
for i in src/phex/* ; do 
javadoc -sourcepath ./src/ -docletpath ../javadoc/UmlGraph.jar -doclet 
gr.spinellis.umlgraph.doclet.UmlGraph -private -horizontal $(find $i -iname 
\*.java) -inferrel -hide "java.*" -hide "javax.*" -hide "com.*" -hide "sun.*" -hide "org.*" -qualify -postfixpackage -inferreltype 
composed -inferdep -inferdepinpackage -useimports  ; dot graph.dot -Tsvg > 
phex-uml-$(basename $i).svg ; done;
It traverses into all directories and creates UML diagrams which are being saved as svg-images in the phex folder (i.e. trunk).

We want to integrate that into ant, but we didn't _yet_ do that...

Wishes,
Arne
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.
Reply With Quote