请在这里使用 ant 脚本帮助我执行以下提到的任务,因为我坚持使用它并且无法通过。
我有如下属性文件:
AccessSession/OperatorCode=生产
访问会话/密码=%587931#
等等....
XML内容如下:(缩短的xml内容)
<application xmlns="http://www.tibco.com/xmlns/ApplicationManagement"
name="PurchaseAdhocBundle">
<description></description>
<contact></contact>
<NVPairs name="Global Variables">
<NameValuePair>
<name>AccessSession/OperatorCode</name>
<value>TM Production</value>
</NameValuePair>
<NameValuePair>
<name>AccessSession/Password</name>
<value>%T3lkom9525#</value>
</NameValuePair>
等等....
我希望脚本使用属性文件中给出的实际属性值更新 XML 文件中的值标记
<application xmlns="http://www.tibco.com/xmlns/ApplicationManagement"
name="PurchaseAdhocBundle">
<description></description>
<contact></contact>
<NVPairs name="Global Variables">
<NameValuePair>
<name>AccessSession/OperatorCode</name>
<value>Production</value>
</NameValuePair>
<NameValuePair>
<name>AccessSession/Password</name>
<value>%587931#</value>
</NameValuePair>