ant的replace用法

1、eg1


在文件configure.sh中,所有的token替换为value。


2、eg2


file="configure.sh"

value="defaultvalue"

propertyFile="src/name.properties">


token="token1"/>


token="token2"

value="value2"/>


token="token3"

property="property.key"/>


token4

value4


在文件configure.sh中,所有的token1替换为defaultvalue,所有的token2替换为value2,所有的token3替换为propertyFile(src/name.properties)中property.key对应的值,所有的token4替换为value4。


你可能感兴趣的:(Ant)