blob: 079d34a9f885e876aab2d02cf4db0761c140b926 [file] [log] [blame]
<?xml version="1.0"?>
<project name="xxx-test" basedir="." default="test1">
<target name="test1">
<replace/>
</target>
<target name="test2">
<replace file=""/>
</target>
<target name="test3">
<replace file="template.xml"/>
</target>
<target name="test4">
<replace file="template.xml" token=""/>
</target>
<target name="test5">
<replace file="template.xml"
token="dont_want_to_really_replace_something"/>
</target>
<target name="test6">
<replace file="template.xml">
<replacefilter />
</replace>
</target>
<target name="test7">
<replace file="template.xml">
<replacefilter token="" />
</replace>
</target>
<target name="test8">
<replace file="template.xml">
<replacefilter token="dont_want_to_really_replace_something" />
</replace>
</target>
<target name="test9">
<copy file="replace/source.txt" tofile="replace/output.txt"/>
<loadfile srcFile="replace/value.txt" property="content"/>
<replace file="replace/output.txt" token="@@@Replace this@@@" value="${content}"/>
</target>
<target name="cleanup">
<delete file="replace/output.txt" quiet="true"/>
</target>
</project>