You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "deckrider (JIRA)" <ji...@codehaus.org> on 2013/01/02 22:54:13 UTC

[jira] (MASSEMBLY-637) fileSet unix strips last newline of file

deckrider created MASSEMBLY-637:
-----------------------------------

             Summary: fileSet <lineEnding>unix</lineEnding> strips last newline of file
                 Key: MASSEMBLY-637
                 URL: https://jira.codehaus.org/browse/MASSEMBLY-637
             Project: Maven 2.x Assembly Plugin
          Issue Type: Bug
    Affects Versions: 2.4
         Environment: Linux ws117v6226517 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 GNU/Linux
Apache Maven 3.0.4 (r1232337; 2012-01-17 01:44:56-0700)
Maven home: /usr/local/lib/apache-maven-3.0.4
Java version: 1.6.0_33, vendor: Sun Microsystems Inc.
Java home: /usr/local/lib/jdk1.6.0_33/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-5-686", arch: "i386", family: "unix"

            Reporter: deckrider


using <fileSet><lineEnding>unix</lineEnding> strips last newline of file when building on Linux platform (not sure about other platforms)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MASSEMBLY-637) fileSet unix strips last newline of file

Posted by "deckrider (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MASSEMBLY-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=316516#comment-316516 ] 

deckrider commented on MASSEMBLY-637:
-------------------------------------

Here is the output of Linux/GNU 'diff' of the original and the formatted file (the original contains the string 'foo' followed by a newline):

{{$ diff -u ./mymodule/src/main/fileset/myfile ./mymodule/target/archive-tmp/fileSetFormatter.113608318.tmp/myfile}}

{{@@ -1 +1 @@}}
{{-foo}}
{{+foo}}
{{\ No newline at end of file}}
                
> fileSet <lineEnding>unix</lineEnding> strips last newline of file
> -----------------------------------------------------------------
>
>                 Key: MASSEMBLY-637
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-637
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.4
>         Environment: Linux ws117v6226517 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 GNU/Linux
> Apache Maven 3.0.4 (r1232337; 2012-01-17 01:44:56-0700)
> Maven home: /usr/local/lib/apache-maven-3.0.4
> Java version: 1.6.0_33, vendor: Sun Microsystems Inc.
> Java home: /usr/local/lib/jdk1.6.0_33/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "2.6.32-5-686", arch: "i386", family: "unix"
>            Reporter: deckrider
>
> using <fileSet><lineEnding>unix</lineEnding> strips last newline of file when building on Linux platform (not sure about other platforms)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MASSEMBLY-637) fileSet unix strips last newline of file

Posted by "Chris Gentile (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MASSEMBLY-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=316574#comment-316574 ] 

Chris Gentile edited comment on MASSEMBLY-637 at 1/3/13 10:49 AM:
------------------------------------------------------------------

I suggest that the priority be changed to Critical because "data loss (corruption)" occurs.
                
      was (Author: chrisg345):
    
I suggest that the severity be changed to Critical because "data loss (corruption)" occurs.
                  
> fileSet <lineEnding>unix</lineEnding> strips last newline of file
> -----------------------------------------------------------------
>
>                 Key: MASSEMBLY-637
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-637
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.4
>         Environment: Linux ws117v6226517 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 GNU/Linux
> Apache Maven 3.0.4 (r1232337; 2012-01-17 01:44:56-0700)
> Maven home: /usr/local/lib/apache-maven-3.0.4
> Java version: 1.6.0_33, vendor: Sun Microsystems Inc.
> Java home: /usr/local/lib/jdk1.6.0_33/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "2.6.32-5-686", arch: "i386", family: "unix"
>            Reporter: deckrider
>
> using <fileSet><lineEnding>unix</lineEnding> strips last newline of file when building on Linux platform (not sure about other platforms)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MASSEMBLY-637) fileSet unix strips last newline of file

Posted by "Chris Gentile (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MASSEMBLY-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=316574#comment-316574 ] 

Chris Gentile commented on MASSEMBLY-637:
-----------------------------------------


I suggest that the severity be changed to Critical because "data loss (corruption)" occurs.
                
> fileSet <lineEnding>unix</lineEnding> strips last newline of file
> -----------------------------------------------------------------
>
>                 Key: MASSEMBLY-637
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-637
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.4
>         Environment: Linux ws117v6226517 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 GNU/Linux
> Apache Maven 3.0.4 (r1232337; 2012-01-17 01:44:56-0700)
> Maven home: /usr/local/lib/apache-maven-3.0.4
> Java version: 1.6.0_33, vendor: Sun Microsystems Inc.
> Java home: /usr/local/lib/jdk1.6.0_33/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "2.6.32-5-686", arch: "i386", family: "unix"
>            Reporter: deckrider
>
> using <fileSet><lineEnding>unix</lineEnding> strips last newline of file when building on Linux platform (not sure about other platforms)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira