You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2016/03/27 15:57:25 UTC
[jira] [Closed] (MRESOURCES-145) Copying resources with no
modication date silently is ignored
[ https://issues.apache.org/jira/browse/MRESOURCES-145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karl Heinz Marbaise closed MRESOURCES-145.
------------------------------------------
Resolution: Cannot Reproduce
plexus-utils is upgraded to 3.0.22 in the meantime. So i think this is solved.
> Copying resources with no modication date silently is ignored
> -------------------------------------------------------------
>
> Key: MRESOURCES-145
> URL: https://issues.apache.org/jira/browse/MRESOURCES-145
> Project: Maven Resources Plugin
> Issue Type: Bug
> Components: copy
> Affects Versions: 2.5
> Reporter: Bartolo
>
> If a file has no last modified date (File.lastModified() == 0), then the plugin just ignore it. This line in the file FileUtils.java of plexus-utils(2.0.5) is wrong:
> {{if ( to.lastModified() < from.lastModified() || overwrite )}}
> It will be evaluated to {{false}} always if {{overwrite}} flag is not set.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)