<project default="filesystem" basedir=".">
<property name="src" value="src"/>
<property name="dest" value="dest"/>
<target name="filesystem">
<echo file="${src}/SimpleText.txt">
This @is@ my example file. I can do all kinds of filesystem tasks to it!
</echo>
<mkdir dir="${src}"/>
<mkdir dir="${dest}"/>
<copy file="${src}/SimpleText.txt" tofile="${dest}/SimpleText.txt"/>
<copy file="${src}/SimpleText.txt" tofile="${dest}/SimplerText.txt"/>
<copy file="${dest}/SimpleText.txt" tofile="${dest}/LessSimpleText.txt">
<filterset>
<filter token="is" value="was" />
</filterset>
</copy>
<copy file="${src}/SimpleText.txt" tofile="${dest}/SimpleText.txt"/>
<delete file="${dest}/SimplerText.txt"/>
</target>
</project>