1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
<project name="ReplaceTokensWithFile" default="testAll">
<target name="testPostfix">
<copy file="properties.ini"
tofile="properties_out.ini" overwrite="true">
<filterchain>
<replacetokenswithfile begintoken="#!" endtoken="##"
dir="" postfix=".tpl" />
</filterchain>
</copy>
<delete file="properties_out.ini"/>
</target>
<target name="testSlashInToken">
<copy file="properties.ini"
tofile="properties_out.ini" overwrite="true">
<filterchain>
<replacetokenswithfile begintoken="//#file:" endtoken=":endfile#"
dir="" postfix=".tpl" />
</filterchain>
</copy>
<delete file="properties_out.ini"/>
</target>
</project>
|