maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Cohen (JIRA)" <>
Subject [jira] (MASSEMBLY-670) Specifying <lineEnding> option of <fileSet> causes timestamps not to be preserved
Date Sat, 09 Nov 2013 13:42:20 GMT


Steve Cohen commented on MASSEMBLY-670:

Hmm, that is too bad.  From the end user point of view, it looks as though attributes such
as <FileMode> and <LineEnding> are equally options of the file being inserted
but actually, <FileMode> is an attribute of the directory entry and can be applied without
affecting the file's modification date, whereas <LineEnding> is an attribute of the
file contents itself and cannot.

As far as your side effect comment goes, I already use multiple filesets but alas, the ones
I most need to apply <lineEnding> to are precisely those where timestamps matter.

I am going to look at an alternative approach, now that I understand the full dimensions of
the problem.  These files all come out of SVN before maven builds the package.  SVN also has
line-ending properties and a timestamp-preservation config option.  If SVN can apply the line-ending
property and still preserve the timestamp, that might work.  But long term I suppose this
is an issue that Maven should fix, albeit not your highest priority.
> Specifying <lineEnding> option of <fileSet> causes timestamps not to be preserved
> ---------------------------------------------------------------------------------
>                 Key: MASSEMBLY-670
>                 URL:
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>          Components: component descriptor
>    Affects Versions: 2.4
>         Environment: linux
>            Reporter: Steve Cohen
> (Summary originally was "assembly plugin tar.gz format does not preserve timestamps of
files it adds to archive".  Changed to reflect actual issue discovered through investigation.)
> The .tar.gz archives created by the assembly plugin do not preserve the timestamps of
the files it adds to the archive.  There is no setting to override this.
> This differs from the functionality of the tar program.  That program preserves timestamps
by default, when adding to the archive and there is no option to change this, although there
are options to change the timestamps on extraction.
> The maven plugin should emulate tar here, I would think.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message