tomcatjarwar

Seeing contents of war file without extracting


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!


Solution

  • 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