Created
January 3, 2014 03:02
-
-
Save strongh/8231878 to your computer and use it in GitHub Desktop.
find classes in classpath. assumes a leiningen project. useful for finding bundled deps. usage is e.g. ```
$ ./findclass.sh MyTerribleClass
```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
TMPCP=/tmp/badcp.txt | |
lein cp | tr ':' '\n' > $TMPCP | |
while read line; do | |
find "$line" -name "*.jar" -exec sh -c 'jar -tf {}| grep -H --label {} '$1'' \; | |
done < "$TMPCP" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment