maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MDEP-140) Make unpack mojos check timestamp of archive entry when overIfNewer=true
Date Sun, 03 Feb 2008 00:41:58 GMT
Make unpack mojos check timestamp of archive entry when overIfNewer=true
------------------------------------------------------------------------

                 Key: MDEP-140
                 URL: http://jira.codehaus.org/browse/MDEP-140
             Project: Maven 2.x Dependency Plugin
          Issue Type: Improvement
          Components: unpack, unpack-dependencies
    Affects Versions: 2.0
            Reporter: Benjamin Bentmann
            Assignee: Brian Fox


I intended to use the {{unpack}} mojo with the following configuration
{code:xml}
<overWriteReleases>false</overWriteReleases>
<overWriteSnapshots>false</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
{code}
to copy files from a JAR somewhere into the src/ hierarchy of another project, if and only
if
- the target file does not exist yet or
- the target file is older than the file from the JAR

Unlike the related Ant task UnZip, the mojo does not check the timestamps of the archive entries
against the timestamps of the target files. In my case, this leads to the unwanted effect
that target files are always overwritten, even if they are newer.

The Plexus {{UnArchiver}} has a property {{overwrite}} that should be used by the plugin when
unpacking files.

-- 
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

        

Mime
View raw message