Adding a “--graph” option

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Adding a “--graph” option

Mathieu Lirzin
Hello,

In order to inspect what components are loaded by OFBiz and
understand/debug their dependency relationship, it would be convenient
to have a visual graph representation.  I have opened OFBIZ-11315 [1]
which adds a new “--graph” option which outputs a 'ofbiz.dot' file
containing a textual representation of the components graph in the DOT
format [2].  This file is meant to be processed by the Graphviz tool to
get a png image:

    cat ofbiz.dot | dot -T png -o ofbiz.png

Currently there is nothing very interesting to output in the graph
because there is no “depends-on” relationship defined in the
framework/applications components.  To see some edges representing the
dependency relation it is possible to re-apply commit
eeabe69813a1d9f42911dec70a912574046ef49b

Possible future steps could be to add some colors or to include other
information like webapps, containers, ... in the graph.

What do people think?

[1] https://issues.apache.org/jira/browse/OFBIZ-11315
[2] https://en.wikipedia.org/wiki/DOT_%28graph_description_language%29

--
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761  070D 0ADE E100 9460 4D37