diff options
Diffstat (limited to 'framework/src/onos/utils/jdvue/bin')
-rwxr-xr-x | framework/src/onos/utils/jdvue/bin/jdvue | 31 | ||||
-rwxr-xr-x | framework/src/onos/utils/jdvue/bin/jdvue-scan | 12 |
2 files changed, 0 insertions, 43 deletions
diff --git a/framework/src/onos/utils/jdvue/bin/jdvue b/framework/src/onos/utils/jdvue/bin/jdvue deleted file mode 100755 index db9d164b..00000000 --- a/framework/src/onos/utils/jdvue/bin/jdvue +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -#------------------------------------------------------------------------------- -# Java Package Dependency viewer -# -# written by Thomas Vachuska -# -- Doobs -- -#------------------------------------------------------------------------------- - -JDVUE_ROOT=${JDVUE_ROOT:-$(dirname $0)/..} -cd $JDVUE_ROOT -VER=1.4.0-rc1 -JAR=$PWD/target/jdvue-${VER}.jar # start with the dev jar first -cd - >/dev/null - -# If the dev jar is not available, use one from .m2/repository -[ -f ${JAR} ] || JAR=~/.m2/repository/org/onlab/tools/jdvue/${VER}/jdvue-${VER}.jar - -# Assume default project to be the base-name of the argument or of current dir -name=$(basename ${1:-$PWD}) - -# If the -n option is specified use the next argument as the catalog name -[ "$1" = "-n" -a $# -ge 2 ] && name=$2 && shift 2 - -# Use the rest of the arguments as paths to scan for sources to build catalog -find "${@:-.}" -type f -name \*.java \ - | grep -v -E '/lost+found/|/target/|archetype-resources' \ - | xargs grep -E "^[ \t]*import .*;.*|^[ \t]*package .*;.*" \ - | tr -d '\r' > $name.db - -# Now run the Java Dependency Viewer jar on the catalog -java -jar ${JAR} $name && rm $name.db && open $name.html diff --git a/framework/src/onos/utils/jdvue/bin/jdvue-scan b/framework/src/onos/utils/jdvue/bin/jdvue-scan deleted file mode 100755 index 216c68d7..00000000 --- a/framework/src/onos/utils/jdvue/bin/jdvue-scan +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -#------------------------------------------------------------------------------- -# Java Package Dependency scanner -# -# written by Thomas Vachuska -# -- Doobs -- -#------------------------------------------------------------------------------- - -find "${@:-.}" -type f -name \*.java \ - | grep -v -E '/lost+found/|/target/' \ - | xargs grep -E "^[ \t]*import .*;.*|^[ \t]*package .*;.*" \ - | tr -d '\r' > jpd.db |