[jira] [Updated] (JS2-1343) jetspeed-unpack-maven-plugin unpack does not overwrite files

"Ernst Blaas (JIRA)" <[email protected]> Thu, 29 Oct 2015 21:46: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:
-----------------------------
    Description: 
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;
                                }

jetspeed-unpack-maven-plugin

> 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
>            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;
>                                 }
> jetspeed-unpack-maven-plugin



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)