Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 3rd, 2012  |  syntax: None  |  size: 0.48 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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/*