maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent TOURREAU (JIRA)" <j...@codehaus.org>
Subject [jira] (MASSEMBLY-753) LineEnding CR to LF conversion output is wrong : All EOL are removed
Date Mon, 23 Feb 2015 14:34:18 GMT
Laurent TOURREAU created MASSEMBLY-753:
------------------------------------------

             Summary: LineEnding CR to LF conversion output is wrong : All EOL are removed
                 Key: MASSEMBLY-753
                 URL: https://jira.codehaus.org/browse/MASSEMBLY-753
             Project: Maven Assembly Plugin
          Issue Type: Bug
    Affects Versions: 2.5.3, 2.5.2, 2.5.1, 2.5
            Reporter: Laurent TOURREAU
            Priority: Blocker
         Attachments: maven-assembly-plugin-2.5.3-lineEnding-cr-to-lf-wrong.zip

when lineEnding=unix the conversion is not correct if the file contains CR end of line characters.
The EOL characters are removed

Example on a file containing the text: 
{code}
MKDIR,/apps/myapp/<CR>
MKDIR,/apps/myapp/repbatch/scripts/eod/<CR>
MKDIR,/apps/myapp/repbatch//scripts/eod/log/<CR>
MKDIR,/apps/myapp/repbatch/scripts/cre/<CR>
{code}

We should expect this:
{code}
MKDIR,/apps/myapp/<LF>
MKDIR,/apps/myapp/repbatch/scripts/eod/<LF>
MKDIR,/apps/myapp/repbatch//scripts/eod/log/<LF>
MKDIR,/apps/myapp/repbatch/scripts/cre/<LF>
{code}

The result is :
{code}
MKDIR,/apps/myapp/MKDIR,/apps/myapp/repbatch/scripts/eod/MKDIR,/apps/myapp/repbatch//scripts/eod/log/MKDIR,/apps/myapp/repbatch/scripts/cre/
{code}


See zip attachment.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message