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 22:20:19 GMT
Tried 1.6beta, still not working. It's definitely line endings. 
I guess the line ending character put into my build file should 
match the same character in the source file. Is there any way
to do this without using code? Hex won't work?

- John

> -----Original Message-----
> From: Antoine Lévy-Lambert [mailto:antoine@antbuild.com]
> Sent: Thursday, October 09, 2003 5:16 PM
> To: Ant Users List
> Subject: AW: Use Replace task for multiple line not working
> 
> 
> Could you try ant1.6beta
> There have been some bugs connected to line endings fixed.
> 
> Cheers,
> Antoine
> 
> -----Urspr√ľngliche Nachricht-----
> Von: Yu, John [mailto:John.Yu@compuware.com]
> Gesendet: Donnerstag, 9. Oktober 2003 23:09
> An: 'user@ant.apache.org'
> Betreff: 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
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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