You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Aronszajn, Mark" <ma...@fhcrc.org> on 2001/09/05 00:44:21 UTC
RE: like to know the syntax for using replacetoken, replacevalue
& CD ATA
Thanks for responding, Diane. I wasn't clear enough on this one... I mean,
if one DOES use the replacetoken/replacevalue tags in order to specify
what's to be replaced by what, what is the syntax for the use of THOSE tags?
I'm basically interested in getting a bunch of replacements done with a
single replace task, so I was interested in the examples that use
replacetoken/replacevalue as imbedded tags, but (as far as I've seen) the
manual only gives examples using
"<![CDATA[...]]>"
inside the tags to specify the thing to be replaced...
Thanks in advance,
Mark
-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com]
Sent: Tuesday, September 04, 2001 11:34 AM
To: ant-user@jakarta.apache.org
Subject: Re: like to know the syntax for using replacetoken,
replacevalue & CD ATA
--- "Aronszajn, Mark" <ma...@fhcrc.org> wrote:
> Are we supposed to infer that you always have to use
> "<![CDATA[....]]>" inside a replacetoken tag? Is that the only way to
> specify the token to be replaced? Same questions regarding the
> syntax/use of replacevalue tags...
Nope. You can also do:
<replace file="foo.txt" token=":" value=";"/>
Diane
=====
(holtdl@yahoo.com)
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
RE: like to know the syntax for using replacetoken, replacevalue & CD ATA
Posted by Diane Holt <ho...@yahoo.com>.
--- "Aronszajn, Mark" <ma...@fhcrc.org> wrote:
> I'm basically interested in getting a bunch of replacements done with a
> single replace task, so I was interested in the examples that use
> replacetoken/replacevalue as imbedded tags, but (as far as I've seen)
> the manual only gives examples using
> "<![CDATA[...]]>"
> inside the tags to specify the thing to be replaced...
Well, you don't need the CDATA part, if that's what you mean -- you can
just do:
<replacetoken>aples
ornges</replacetoken>
<replacevalue>apples and oranges</replacevalue>
I guess I'm not sure what you're looking to do -- do you actually have
multi-line replaces you need to do? If you just have a number of replaces
you need to do, you can just use the nested <replacefilter>, yes?
<replacefilter
token="aples"
value="apples"/>
<replacefilter
token="ornges"
value="oranges"/>
Diane
=====
(holtdl@yahoo.com)
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com