ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Stevens <>
Subject Re: replace task not working?
Date Sat, 09 Dec 2000 06:38:28 GMT
on 12/8/2000 10:30 PM, "Peter Donald" <> wrote:

> Without looking closely you may want to change it to.
> <replace file="E:/Projects/tdk/dist/tdk/conf/server.xml">
> <replacetoken>a</replacetoken>
> <replacevalue>A</replacevalue>
> </replace>
> This just makes sure itis not a funky whitespace issue
> Cheers,

right, but the problem is that i need to embed cdata into there. :-)

The "real" content I'm trying to replace is:

        <replace file="${tdk.dist}/conf/server.xml">
                <![CDATA[<Context path="/" docBase="webapps/site">

As you can see, it has <> tags in there. I tried simplifying things with
just a replace of the letter "a", but that still didn't work. I'm wondering
if we have to do a .trim() on the data or something.


Honk if you love peace and quiet.

View raw message