Skip to content
Permalink
Browse files
Merge pull request #265 from CMoH/jenkins-9577
[JENKINS-9577] Fix last modification timestamp after unzip
  • Loading branch information
ssogabe committed Sep 29, 2011
2 parents e8e9ac0 + f967fea commit 2bd40df44439ae04ecc2db306de70230f520c1a7
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/hudson/FilePath.java
@@ -499,7 +499,6 @@ private void unzip(File dir, File zipFile) throws IOException {
p.mkdirs();
}
IOUtils.copy(zip.getInputStream(e), f);
f.setLastModified(e.getTime());
try {
FilePath target = new FilePath(f);
int mode = e.getUnixMode();
@@ -508,6 +507,7 @@ private void unzip(File dir, File zipFile) throws IOException {
} catch (InterruptedException ex) {
LOGGER.log(Level.WARNING, "unable to set permissions", ex);
}
f.setLastModified(e.getTime());
}
}
} finally {

0 comments on commit 2bd40df

Please sign in to comment.