From cdebcbbeb58a8e0211e47aa3f619c1482cf5945b Mon Sep 17 00:00:00 2001 From: Milen Dyankov Date: Mon, 2 Mar 2015 19:45:42 +0100 Subject: [PATCH] Updated JDepend stat script to show components --- stats/jdepend.sh | 20 +++++++++++++++++--- stats/lib/jdepend.properties | 6 ++++++ 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/stats/jdepend.sh b/stats/jdepend.sh index e6d88c7..a2202c8 100755 --- a/stats/jdepend.sh +++ b/stats/jdepend.sh @@ -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 diff --git a/stats/lib/jdepend.properties b/stats/lib/jdepend.properties index deb3179..4148b0e 100644 --- a/stats/lib/jdepend.properties +++ b/stats/lib/jdepend.properties @@ -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.*