Gradle如何将文件与属性FileContentMerge合并?

Gradle如何将文件与属性FileContentMerge合并?,gradle,merge,properties-file,Gradle,Merge,Properties File,Gradle如何合并两个属性文件 war { from zipTree("foo.war") { filesMatching("bar.properties") { // how to merge with /path/hello.properties? // i.e. add all the properties in hello.properties to bar.properties } } } 我看

Gradle如何合并两个属性文件

war {
   from zipTree("foo.war") {

       filesMatching("bar.properties") {
           // how to merge with /path/hello.properties?
           // i.e. add all the properties in hello.properties to bar.properties
       }
   }

}

我看到你在这里问了很多关于Gealle的问题,大部分都是在Stad上已经回答过,或者很容易在谷歌上找到,你是否考虑过做一些研究,而且你的问题还不清楚,并且请不要考虑遵循这些规则来帮助我们。我在谷歌上找不到相关的答案。这一个是将文件直接合并到一场战争中。然后可能会尝试解释并给我们一些例子,你已经尝试了什么,一些指示你试图实现什么,如果你的问题会被问到不同的可能会有一些答案或至少评论,相信我。