Browse Source

Improve fix for PR: 19449.

Don't drop directory entries after we've found out they were outdated,
but simply do not perform timestamp checks on the at all.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274544 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
02305cfec1
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      src/main/org/apache/tools/ant/taskdefs/Zip.java

+ 7
- 5
src/main/org/apache/tools/ant/taskdefs/Zip.java View File

@@ -807,15 +807,17 @@ public class Zip extends MatchingTask {
myMapper = gm;
}
}

Resource[] resources = initialResources[i];
if (doFilesonly) {
resources = selectFileResources(resources);
}
newerResources[i] =
ResourceUtils.selectOutOfDateSources(this,
initialResources[i],
resources,
myMapper,
getZipScanner());
if (doFilesonly) {
newerResources[i] = selectFileResources(newerResources[i]);
}
needsUpdate = needsUpdate || (newerResources[i].length > 0);

if (needsUpdate && !doUpdate) {


Loading…
Cancel
Save