Hi, is there a way to grep(find) the text in a particular file, which is in *.jar and this *.jar is in *.war?
A:
jar files are zip files, so you need a tool that can grep inside a zip file.
It appears there are several at http://www.freedownloadscenter.com/Best/grep-zip.html
Thorbjørn Ravn Andersen
2009-07-22 22:16:00
A:
Are you doing this programmatically from Java?
.war files are basically .zip files, just like .jar files. You can open .zip files with java.util.ZipFile.
Open your .war as a ZipFile, find your .jar within it, open your .jar as a ZipFile, find your text file within it. Now you can read the text and process it however you want.
Does this answer your question?
Cosmic Flame
2009-07-23 11:29:04
No but I can. thanks for the tip.
feiroox
2009-07-23 20:36:18