ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Gentle <j.kenneth.gen...@acm.org>
Subject Filter files "in place"?
Date Wed, 21 May 2003 15:49:27 GMT
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


Mime
View raw message