diff options
Diffstat (limited to 'framework/src/onos/utils/jdvue/bin/jdvue-scan')
-rwxr-xr-x | framework/src/onos/utils/jdvue/bin/jdvue-scan | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/src/onos/utils/jdvue/bin/jdvue-scan b/framework/src/onos/utils/jdvue/bin/jdvue-scan new file mode 100755 index 00000000..216c68d7 --- /dev/null +++ b/framework/src/onos/utils/jdvue/bin/jdvue-scan @@ -0,0 +1,12 @@ +#!/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 |