除灰 回答。_
您可以使用不同prefix
的任务属性property
,例如
<property file="file1.properties" prefix="file1"/>
<property file="file2.properties" prefix="file2"/>
通过这种方式,您可以找出两个文件是否具有相同的属性,并在构建脚本中区分它们。例如,如果两个文件都有 property test
,那么在使用上述命令加载它们之后,您最终会得到名为file1.test
and的属性file2.test
。