使用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