提交 2bd40df4 编写于 作者: S Seiji Sogabe

Merge pull request #265 from CMoH/jenkins-9577

[JENKINS-9577] Fix last modification timestamp after unzip
...@@ -499,7 +499,6 @@ public final class FilePath implements Serializable { ...@@ -499,7 +499,6 @@ public final class FilePath implements Serializable {
p.mkdirs(); p.mkdirs();
} }
IOUtils.copy(zip.getInputStream(e), f); IOUtils.copy(zip.getInputStream(e), f);
f.setLastModified(e.getTime());
try { try {
FilePath target = new FilePath(f); FilePath target = new FilePath(f);
int mode = e.getUnixMode(); int mode = e.getUnixMode();
...@@ -508,6 +507,7 @@ public final class FilePath implements Serializable { ...@@ -508,6 +507,7 @@ public final class FilePath implements Serializable {
} catch (InterruptedException ex) { } catch (InterruptedException ex) {
LOGGER.log(Level.WARNING, "unable to set permissions", ex); LOGGER.log(Level.WARNING, "unable to set permissions", ex);
} }
f.setLastModified(e.getTime());
} }
} }
} finally { } finally {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册