Skip to content

Commit

Permalink
Updated JDepend stat script to show components
Browse files Browse the repository at this point in the history
  • Loading branch information
azzazzel committed Mar 15, 2015
1 parent fb2f005 commit cdebcbb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
20 changes: 17 additions & 3 deletions stats/jdepend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,31 @@ REPORT='report'
REPORT_DIR="$BASEDIR/reports"
LIB_DIR="$BASEDIR/lib"

COMPONENTS="com.forest.usecase.identity,\
com.forest.usecase.catalog,\
com.forest.usecase.ecommerce,\
com.forest.store.wiring.identity,\
com.forest.store.wiring.catalog,\
com.forest.store.wiring.ecommerce,\
com.forest.store.ui,\
com.forest.shipment.wiring,\
com.forest.shipment.ui,\
com.forest.payment.services,\
com.forest.persistence,\
com.forest.model"


mkdir -p $REPORT_DIR

case $1 in
'gui')
java -cp $LIB_DIR/jdepend-2.9.1.jar:$LIB_DIR jdepend.swingui.JDepend $BASEDIR/..
java -cp $LIB_DIR/jdepend-2.9.1.jar:$LIB_DIR jdepend.swingui.JDepend -components $COMPONENTS $BASEDIR/..
;;
'xml')
java -cp $LIB_DIR/jdepend-2.9.1.jar:$LIB_DIR jdepend.xmlui.JDepend $BASEDIR/..
java -cp $LIB_DIR/jdepend-2.9.1.jar:$LIB_DIR jdepend.xmlui.JDepend -components $COMPONENTS $BASEDIR/..
;;
"$REPORT")
java -cp $LIB_DIR/jdepend-2.9.1.jar:$LIB_DIR jdepend.xmlui.JDepend $BASEDIR/.. > $REPORT_DIR/jdepend.xml
java -cp $LIB_DIR/jdepend-2.9.1.jar:$LIB_DIR jdepend.xmlui.JDepend -components $COMPONENTS $BASEDIR/.. > $REPORT_DIR/jdepend.xml
xsltproc $LIB_DIR/jdepend2dot.xsl $REPORT_DIR/jdepend.xml > $REPORT_DIR/jdepend.dot
dot -Tpng $REPORT_DIR/jdepend.dot > $REPORT_DIR/jdepend.png
xsltproc $LIB_DIR/jdepend2html_img.xsl $REPORT_DIR/jdepend.xml > $REPORT_DIR/jdepend.html
Expand Down
6 changes: 6 additions & 0 deletions stats/lib/jdepend.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
ignore.java=java.*,javax.*
ignore.sun=sun.*,com.sun.*
ignore.jdepend=jdepend.*
ignore.forest=com.forest.model,com.forest.store.qualifiers,com.forest.shipment.qualifiers
ignore.xml=com.fasterxml.*
ignore.org=org.*
ignore.amdatu=com.amdatu.*
ignore.google=com.google.*
ignore.liferay=com.liferay.*

0 comments on commit cdebcbb

Please sign in to comment.