Guest User

Untitled

a guest
May 3rd, 2012
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Is there a command line tool to tell me which JAR a particular Class is in
  2. find . -name *jar -exec jaregrep -l "org.bob.PriceListViewUpdate" {} ;
  3. REST/prices.jar
  4. v2/REST/prices.jar
  5.  
  6. grep -rail --include=*.jar org.bob.PriceListViewUpdate
  7.  
  8. #!/bin/sh
  9.  
  10. find $1 -name *jar | while read JARFILE
  11. do
  12. COUNT=$(unzip -qq -l "$JARFILE" "$2" | wc -l)
  13. if [ $COUNT -gt 0 ] ; then
  14. echo "$JARFILE: $COUNT matches"
  15. fi
  16. done
  17.  
  18. ./findclass.sh workspace-indigo/ org/objectweb/*
Advertisement
Add Comment
Please, Sign In to add comment