[jira] [Updated] (JS2-1343) jetspeed-unpack-maven-plugin unpack does not overwrite files
"Ernst Blaas (JIRA)" <[email protected]> Fri, 30 Oct 2015 07:21:27 +0000 (UTC)
| Newsgroups | gmane.comp.jakarta.jetspeed.devel |
|---|---|
| Message-ID | <[email protected]> |
[ https://issues.apache.org/jira/browse/JS2-1343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ernst Blaas updated JS2-1343:
-----------------------------
Affects Version/s: 2.3.0
> jetspeed-unpack-maven-plugin unpack does not overwrite files
> ------------------------------------------------------------
>
> Key: JS2-1343
> URL: https://issues.apache.org/jira/browse/JS2-1343
> Project: Jetspeed 2
> Issue Type: Bug
> Components: Assembly/Configuration
> Affects Versions: 2.2.2, 2.3.0
> Reporter: Ernst Blaas
>
> The unpack-maven-plugin doesn't overwrite files where the existim timstame is equal to the zip entry file timstamp
> see org/apache/jetspeed/maven/utils/UnpackResources.java
> if ( destFile.lastModified() >= fileEntry.getTime() || !unpackResources[i].isOverwrite() )
> {
> if (verbose)
> {
> log.info(fileEntry.getName()+" skipped: already exists at "+destFile.getAbsolutePath());
> }
> else
> {
> log.debug(fileEntry.getName()+" skipped: already exists at "+destFile.getAbsolutePath());
> }
> continue;
> }
> unpackResources[i].isOverwrite() is ignored even if set to true, since the first part from OR evaluates to true, and we skip the entry
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)