我正在尝试使用propertyfile任务更新它后读取属性.就像是
<property file="test.properties" />
<echo>before :: ${modules}</echo>
<propertyfile file="test.properties" >
<entry key="modules" type="string" operation="+" value="foo" />
</propertyfile>
<property file="${status.path}/test.properties" />
<echo>after :: ${modules}</echo>.
Run Code Online (Sandbox Code Playgroud)
它似乎没有第二次加载.但属性文件已更新.