使用Buildr打包战争时可以过滤web.xml文件吗? Buildr文档: Without much prompting, package :war picks the contents of the src/main/webapp directory and places it at the root of the WAR 我有一个占位符或在web.xml标记中定义,我想取代它的包装,这取决于
我是buildr的新手,所以我可能会漏掉一些明显的东西。 据this page,它应该是相当简单: Download explode.rb At the top of your buildfile, add the following: require 'explode.rb' Define explode task on your web application: package(:war).e