Uploaded image for project: 'Jetspeed 2 (Retired)'
  1. Jetspeed 2 (Retired)
  2. JS2-1343

jetspeed-unpack-maven-plugin unpack does not overwrite files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.2, 2.3.0
    • None
    • Assembly/Configuration
    • None

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

      unpackResources[i].isOverwrite() is ignored even if set to true, since the first part from OR evaluates to true, and we skip the entry

      Attachments

        Activity

          People

            Unassigned Unassigned
            ernst.blaas@gmail.com Ernst Blaas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: