ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: replace task not working?
Date Sat, 09 Dec 2000 06:30:10 GMT
At 10:28  8/12/00 -0800, you wrote:
>Ok, I have the following Ant code...
>
>        <replace file="E:/Projects/tdk/dist/tdk/conf/server.xml">
>            <replacetoken>
>                <![CDATA[a]]>
>            </replacetoken>
>            <replacevalue>
>                <![CDATA[A]]>
>            </replacevalue>
>        </replace>
>
>When I run it, I don't get any errors (it finds the file just fine cause if
>I change the name to server.xmlffff, I get an error), but the file is not
>modified either. Anyone know what is wrong?

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,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*


Mime
View raw message