You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2018/03/29 02:43:59 UTC

[Bug 22661] Replace does not preserve line endings in multi line tokens

https://bz.apache.org/bugzilla/show_bug.cgi?id=22661

--- Comment #6 from dantewang <co...@gmail.com> ---
There should be an option to switch between whether to take line ending into
consideration in multi line token or not.

A typical use case is that the build.xml and the file that needs to be modified
by <replace> task are both created in Linux (so both having \n), while the
build is performed in Windows, where <replace> task replaces \n with \r\n in
the token, causing the matching failure.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.