ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yu, John" <John...@compuware.com>
Subject RE: Use Replace task for multiple line not working
Date Thu, 09 Oct 2003 21:44:21 GMT
No. And single line works. Actually I can do the reverse,
meaning replacing single line with multiple lines, except
the default inserted line feed is 0d0a and my source uses 0a. 
Not a big problem though. I'm trying a higher version now
to see if it is a bug being fixed.

- John

> -----Original Message-----
> From: Hardacker, Andrew [mailto:Andrew.Hardacker@Compuware.com]
> Sent: Thursday, October 09, 2003 5:35 PM
> To: 'Ant Users List'
> Subject: RE: Use Replace task for multiple line not working
> 
> 
> Oh, unless you didn't literally mean to include the 
> "<![{CDATA[" etc, in
> which case your code works fine in 1.5.3.
> 
> -----Original Message-----
> From: Hardacker, Andrew [mailto:Andrew.Hardacker@Compuware.com]
> Sent: Thursday, October 09, 2003 5:27 PM
> To: 'Ant Users List'
> Subject: RE: Use Replace task for multiple line not working
> 
> 
> Try
> 
> <replacetoken>&lt;![CDATA[first line
> second line]]&gt;</replacetoken>
> 
> Andy Hardacker
> 
> -----Original Message-----
> From: Yu, John [mailto:John.Yu@compuware.com]
> Sent: Thursday, October 09, 2003 5:09 PM
> To: 'user@ant.apache.org'
> Subject: Use Replace task for multiple line not working
> 
> 
> Hi,
> 
> I'm trying to do the following, however rather unsuccessful 
> using Ant 1.5.1
> on Windows 2000:
> 
> <replace dir="${curdir}" includes="**/*.jsp" value="">
> <replacetoken><![CDATA[first line
> second line]]>
> </replacetoken>
> 
> Lines are not removed. I took a Hex look at the source file, 
> and see it use
> "0a" as end of line.
> So I tried "#xA", "0x0a", "0a", nothing works. The online Ant 
> documentation
> showed similar 
> example as my code. 
> 
> What did I do wrong here?
> 
> Thanks a lot,
> John
> 
> 
> 
> 
> 
> The contents of this e-mail are intended for the named 
> addressee only. It
> contains information that may be confidential. Unless you are 
> the named
> addressee or an authorized designee, you may not copy or use 
> it, or disclose
> it to anyone else. If you received it in error please notify 
> us immediately
> and then destroy it. 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 
> The contents of this e-mail are intended for the named 
> addressee only. It
> contains information that may be confidential. Unless you are 
> the named
> addressee or an authorized designee, you may not copy or use 
> it, or disclose
> it to anyone else. If you received it in error please notify 
> us immediately
> and then destroy it. 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 
> The contents of this e-mail are intended for the named 
> addressee only. It
> contains information that may be confidential. Unless you are 
> the named
> addressee or an authorized designee, you may not copy or use 
> it, or disclose
> it to anyone else. If you received it in error please notify 
> us immediately
> and then destroy it. 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 



The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message