ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14315] - Core Ant task : Replace: non-performant
Date Thu, 07 Nov 2002 15:19:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14315>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14315

Core Ant task : Replace: non-performant

bodewig@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From bodewig@apache.org  2002-11-07 15:19 -------
The real problem is the misleading "2 occurences" which is now fixed in CVS.

The reason why replace doesn't do anything are the spaces in front of the closing
</replacetoken> which become part of your token (and therefore your token
doesn't get matched at all).

Try

<replace file="${root}\utilwar\webApplication\WEB-INF\web.xml" summary="yes"> 
    <replacetoken><![CDATA[<!--load-on-startup>-1</load-on-startup--
>]]></replacetoken>
    <replacevalue><![CDATA[<load-on-startup>-1</load-on-startup>]]></replacevalue>
</replace>

instead.

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message