maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "deckrider (JIRA)" <j...@codehaus.org>
Subject [jira] (MASSEMBLY-637) fileSet <lineEnding>unix</lineEnding> strips last newline of file
Date Wed, 02 Jan 2013 22:05:13 GMT

    [ 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

        

Mime
View raw message