0
我在脚本中有几个主要目标。每个人都加载相同的属性。在访问新目标时,我需要在运行时更改特定属性的值;反正有男生!重写Ant属性文件的值
<target name="A">
<property file="${env.WORKSPACE}/build/file_A.properties" />
<!-- here i use my properties-->
<target/>
<target name="B">
<property file="${env.WORKSPACE}/build/file_B.properties" />
<!-- update the previous properties -->
<target/>
谢谢你们,
感谢饶,其实脚本不是从终端启动,以及一些搜索后,我发现,性质是不可变的,所以我们不能在执行改变自己的价值,并避免这个,我从Ant Contrib库中找到任务。这是有用的附加程序和实用程序ApacheAnt任务。 –