Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Seeing contents of war file without extracting

Tags:

jar

tomcat

war

I created a simple web application and deployed in Tomcat using the admin console of Tomcat. Now, this war files gets stored in tomcat location under webapps directory.

Is there a way to see the contents of this war without extracting? I know we can see the contents of war file by extracting using jar -xvf ; however is there any tool/mechanism by which to see the contents of war files without extracting it?

Thanks for your time!

like image 815
CuriousMind Avatar asked Dec 30 '15 16:12

CuriousMind


1 Answers

The t option to the command line jar program will list the contents of a jar (or war) file, e.g.:

$ jar tf the-file.war
like image 98
matt Avatar answered Sep 23 '22 03:09

matt