[JENKINS-9577] Fix last modification timestamp after unzip

Reordered operations in order to set the file modification time
after applying the permissions.
This commit is contained in:
Ciprian Ciubotariu committed 2011-09-28 03:12:47 +03:00
1 parent 8e9e6ac657
commit f967feaca9
1 file changed
+1 -1
+1 -1
View File
@@ -499,7 +499,6 @@ public final class FilePath implements Serializable {
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 @@ public final class FilePath implements Serializable {
} catch (InterruptedException ex) {
LOGGER.log(Level.WARNING, "unable to set permissions", ex);
}
f.setLastModified(e.getTime());
}
}
} finally {