在不提取的情况下查看战争文件的内容 [英] Seeing contents of war file without extracting

查看:72
本文介绍了在不提取的情况下查看战争文件的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个简单的Web应用程序,并使用Tomcat的管理控制台将其部署在Tomcat中.现在,该战争文件将存储在webapps目录下的tomcat位置.

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.

有没有办法看到这场战争的内容而无需提取?我知道我们可以通过使用jar -xvf提取来查看war文件的内容;但是,是否有任何工具/机制可用来查看战争文件的内容而不提取它们?

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?

感谢您的时间!

推荐答案

命令行jar程序的t选项将列出jar(或war)文件的内容,例如:

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

这篇关于在不提取的情况下查看战争文件的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆