Lets say I have a .war file
myWarFile.war
This file has a jar file inside it - WEB-INF/myJarFile.jar
I want to see what are the files inside myJarFile.jar without extracting the war file.
Is there a way to do it?
Lets say I have a .war file
myWarFile.war
This file has a jar file inside it - WEB-INF/myJarFile.jar
I want to see what are the files inside myJarFile.jar without extracting the war file.
Is there a way to do it?
jar xvf thewar.war /path/to/jar/inside/war #extract the file...
jar tvf /path/to/jar/indide/war.jar # read the extracted jar
rm /path/to/jar/inside/war # remove it
I just did this and it did not delete the file I extracted from the war. Please verify that though...;)
I think your best shot is guessing, but that's not very reliable.
A zipped archive (a .war is nothing else) contains a table of content and packed files. There is no way of accessing the contents of any of the packed files without extracting them first.