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 22661] New: - Replace does not preserve line endings in multi line tokens
Date Fri, 22 Aug 2003 15:45:04 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=22661>.
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=22661

Replace does not preserve line endings in multi line tokens

           Summary: Replace does not preserve line endings in multi line
                    tokens
           Product: Ant
           Version: 1.6Alpha (nightly)
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: antoine@apache.org


The replace task does not preserve line endings properly.
In revision 1.46, I did a change to avoid \r\n to be changed into \r\r\n on 
Windows (problem reported via email by Morten Mortensen).
Now I have the problem that \n gets replaced into the system's line separator, 
in both source and replacement tokens.
This showed with the test9 of ReplaceTest failing on Windows when the files of 
the test cases were downloaded with the cygwin cvs client (so having \n instead 
or \r\n)
I am not sure what is the best way to tackle this issue.
Maybe not doing any replacements of line endings in (value, token) pairs ?
Not sure.

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


Mime
View raw message