Ant replace task does a in-place replacement without creating a new file.
The below snippet replaces tokens in any of the *.xml files with the corresponding values from my.properties file.
<replace dir="${projects.prj.dir}/config" replacefilterfile="${projects.prj.dir}/my.properties" includes="*.xml" summary="true"/'>
I want those *.xml files that had their tokens replaced be created as *.xml.filtered (for e.g.) and still have the original *.xml.
Is this possible in Ant with some smart combination of tasks and concepts ?