ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Martin <>
Subject RE: Filter files "in place"?
Date Wed, 21 May 2003 15:54:08 GMT
I think the "replace" target does what you want.

>  -----Original Message-----
> From: 	Ken Gentle <>@SUNGARD  
> Sent:	mercredi 21 mai 2003 17:49
> To:	ant Users List
> Subject:	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.tx
> t
> So the filtering I really want doesn't happen.
> Am I going to have to resort to two files?
> TIA!
> Ken
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
Confidentiality Notice: The information contained in this e-mail message is
intended only for the personal and confidential use of the recipient(s)
named above. If the reader of this message is not the intended recipient or
an agent responsible for delivering it to the intended recipient, you are
hereby notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is strictly
prohibited. If you have received this communication in error, please notify
us immediately by e-mail, and delete the original message. 

Message confidentiel : Les informations contenues dans ce message sont
destinees a un usage personnel et confidentiel du destinataire indique
ci-dessus. Si le lecteur de ce message n'est pas le destinataire prevu, ou
n'est pas une personne en charge de le delivrer au destinataire voulu, vous
etes par la presente informe que vous avez recu ce document par erreur, et
que tout examen, transmission, distribution ou copie de ce message est
totalement interdit. Si vous avez recu cette communication par erreur, nous
vous remercions de bien vouloir nous avertir immediatement par e-mail et de
detruire le message d'origine.

  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message