You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/11/06 22:53:43 UTC
DO NOT REPLY [Bug 14315] New: -
Core Ant task : Repalce: non-performant
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 : Repalce: non-performant
Summary: Core Ant task : Repalce: non-performant
Product: Ant
Version: 1.4.1
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Core tasks
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: gasiorpt@maritz.com
I am trying to replace a line containing xml attributes in a file. There is
only one such line in this file
According to the 1.4.1 docs and even the 1.5.1 docs this is how it would be
done...
<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>
I then get the following in the verbose output of ant:
[replace] Replacing in C:\marioworkspace\utilwar\webApplication\WEB-
INF\web.xml: <!--load-on-startup>-1</load-on-startup-->
--> <load-on-startup>-1</load-on-startup>
[replace] Replaced 2 occurrences in 0 files.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>