grails - 如何确认遗留在Grails 2.4.0项目的war文件中的文件?

标签 grails war

旧版代码中有一些js文件,当我们使用run-app命令运行应用程序时,在浏览器中看不到这些文件。

我们将项目之战投入生产。我们使用war命令生成它。我需要确保在 war 中不 bundle 这些js文件。我该如何检查?我在BuildConfig.groovy文件中看不到任何源目录路径。另外,在web-app / WEB-INF /中看不到任何相关内容-

applicationContext.xml
sitemesh.xml。

我想念什么吗?

最佳答案

I need to make sure that these js files are not bundled in the war. How do I check the same?



在.war文件中查找。 .war文件实际上只是一个zip文件。您可以使用unzip -l somefilename.war之类的东西列出war / zip / jar文件的内容,或者使用您喜欢的任何zip文件询问工具。

关于grails - 如何确认遗留在Grails 2.4.0项目的war文件中的文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56948951/

相关文章:

grails - 从STS运行grails显示打开zip文件或JAR list 丢失时出错

java - Tomcat 8 错误 : invalid character ':' in value part of property

Maven WAR 依赖

maven - 使用 maven-ear-plugin 创建 war 文件并在一个 pom.xml 中定义它

hibernate - Grails:如何在Grails上处理Java Bean验证

json - Grails 3,REST API。如何获得关联作为对象,而不仅仅是ID

grails - 从缺少概要文件的源安装了Grails发行版

grails - 将数据添加到对象后,对象的列表功能不起作用

grails - 当部署为War Tomcat 6时,Spring Security Grails插件失败

web-applications - 使用 gradle 创建一个包含 webapp 中的类的 JAR