ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aronszajn, Mark" <maron...@fhcrc.org>
Subject RE: like to know the syntax for using replacetoken, replacevalue & CD ATA
Date Wed, 05 Sep 2001 02:53:47 GMT
Oh, I see.  I'd looked at using replacefilter tags, but it didn't sink in on
first read that a property file isn't required for the use of replacefilter
tags, only when you a replacefilter tag is used with a property attribute.
So replacefilter tags can be used w/out reference to any property file to do
just what I wanted.

Thanks,

Mark

-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com]
Sent: Tuesday, September 04, 2001 5:04 PM
To: ant-user@jakarta.apache.org
Subject: RE: like to know the syntax for using replacetoken,
replacevalue & CD ATA 


--- "Aronszajn, Mark" <maronsza@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

Mime
View raw message