You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2024/11/28 20:05:00 UTC
[jira] [Commented] (MANTRUN-234) replaceregexp match $ is splitting eol character
[ https://issues.apache.org/jira/browse/MANTRUN-234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17901781#comment-17901781 ]
Elliotte Rusty Harold commented on MANTRUN-234:
-----------------------------------------------
Do you have a reproducible test case? This sounds like something that might be completely within ant, whether the anrtrun plugin is involved or not.
> replaceregexp match $ is splitting eol character
> ------------------------------------------------
>
> Key: MANTRUN-234
> URL: https://issues.apache.org/jira/browse/MANTRUN-234
> Project: Maven Antrun Plugin
> Issue Type: Bug
> Reporter: Christian Notenboom
> Priority: Major
>
> Since 3.0.0 it seems the replaceregexp is not working correctly when used with match="$". The result is that the eol is split.
> replaceregexp input
> {code:java}
> <replaceregexp file="${inputFile}" match="$" replace="${line.separator}-extratext" />{code}
> inputFile:
> {noformat}
> blaCRLF{noformat}
> resulting outputFile:
> {noformat}
> blaCR
> CRLF
> extratextLF{noformat}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)