portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ernst Blaas (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] [Updated] (JS2-1343) jetspeed-unpack-maven-plugin unpack does not overwrite files
Date Fri, 30 Oct 2015 07:21:27 GMT

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

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message