Summary: | Replace does not preserve line endings in multi line tokens | ||
---|---|---|---|
Product: | Ant | Reporter: | Antoine Levy-Lambert <antoine> |
Component: | Core tasks | Assignee: | Ant Notifications List <notifications> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | louguang, notifications |
Priority: | P3 | ||
Version: | 1.7.0 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
Antoine Levy-Lambert
2003-08-22 15:45:03 UTC
did not work on this bug, so I am putting it back to the community ... *** Bug 37660 has been marked as a duplicate of this bug. *** *** This bug has been marked as a duplicate of bug 46759 *** This must have been made duplicate by mistake? Yes, sorry, must have clicked on the wrong link. 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. |