zxeem on 03/18/10
Last Edited at 03/18/10 03:35am
def cDir = new File(".");def jarContents;cDir.eachFileRecurse{file -> if (file.name =~ /.*.jar$/) { jarContents = "jar tvf ${file}".execute().text; jarContents.eachLine{line -> if (line.contains(args[0])){ print "*** found in ${file.canonicalPath}:"; println line; } } }}
Report this snippet Tweet
Comment:
You need to login to post a comment.