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

        

Reply via email to