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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]