blob: 216c68d7e412b99d2033fb0045d36ed913544251 [file] [log] [blame]
Thomas Vachuska6b331262015-04-27 11:09:07 -07001#!/bin/bash
2#-------------------------------------------------------------------------------
3# Java Package Dependency scanner
4#
5# written by Thomas Vachuska
6# -- Doobs --
7#-------------------------------------------------------------------------------
8
9find "${@:-.}" -type f -name \*.java \
10 | grep -v -E '/lost+found/|/target/' \
11 | xargs grep -E "^[ \t]*import .*;.*|^[ \t]*package .*;.*" \
12 | tr -d '\r' > jpd.db