Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   Development Open Discussion (https://www.gnutellaforums.com/development-open-discussion/)
-   -   Phex 3.0.2 Class structure documents (https://www.gnutellaforums.com/development-open-discussion/68120-phex-3-0-2-class-structure-documents.html)

duclh March 16th, 2007 11:36 AM

Phex 3.0.2 Class structure documents
 
Hi,
I am a new developer about Phex3.0.2
Please tell me where i could find out the documents about Phex3.0.2 class structure

Thank in advance!
--no mail addresses in this forum, please---

arne_bab March 17th, 2007 02:38 AM

By checking out Phex via subversion, you can create Javadocs, which should give you first information about the structure of Phex.

Accessing the sources:
Code:

svn co https://phex.svn.sourceforge.net/svnroot/phex/phex/trunk phex
- from: http://wiki.phex.org/Subversion

Javadocs:
Code:

cd build
ant javadoc

For more information, I'm afraid you'll have to ask Gregor: http://www.gnutellaforums.com/member...poster&t=65691

Best wishes,
Arne

PS: We need someone who wants to create a class structure text for the wiki: http://wiki.phex.org .

GregorK March 17th, 2007 04:43 AM

Arne what about the UML you created... ant??

arne_bab March 18th, 2007 12:58 AM

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


All times are GMT -7. The time now is 03:28 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.