小编nah*_*612的帖子

更新属性文件后重新加载属性

我正在尝试使用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)

它似乎没有第二次加载.但属性文件已更新.

ant properties

3
推荐指数
1
解决办法
4326
查看次数

标签 统计

ant ×1

properties ×1