Seeing contents of war file without extracting

回眸只為那壹抹淺笑 提交于 2019-12-20 01:09:32

问题


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!


回答1:


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


来源:https://stackoverflow.com/questions/34533367/seeing-contents-of-war-file-without-extracting

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!