You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bartolo (JIRA)" <ji...@codehaus.org> on 2011/05/09 16:29:22 UTC

[jira] Created: (MRESOURCES-145) Copying resources with no modication date silently is ignored

Copying resources with no modication date silently is ignored
-------------------------------------------------------------

                 Key: MRESOURCES-145
                 URL: http://jira.codehaus.org/browse/MRESOURCES-145
             Project: Maven 2.x 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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira