You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ken Gentle <j....@acm.org> on 2003/05/21 17:49:27 UTC
Filter files "in place"?
OK folks, I RTFM'd and searched the archives, but don't have an answer.
How do I Filter a file "in place"? In other words, the input file and the
output file are the same.
When I use the following:
<copy todir="${release.notify.dir}" filtering="true" overwrite="true">
<fileset dir="${release.notify.dir}">
<include name="Notify-Request-Submissions.txt" />
</fileset>
<filterset>
<filter token="release-build-time" value="${release.buildtime}" />
<filter token="release-submission-deadline"
value="${release.deadline}"/>
</filterset>
</copy>
I get the following message:
[copy] Copying 1 file to S:\shared\2003-TEST\QA\TEST-01\notifications
[copy] Skipping self-copy of
S:\shared\2003-TEST\QA\TEST-01\notifications\Notify-Request-Submissions.txt
So the filtering I really want doesn't happen.
Am I going to have to resort to two files?
TIA!
Ken