提交 c9df23cb 编写于 作者: M martinficker

Attempt to fix Issue-2605

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14192 71c3de6d-444a-0410-be80-ed276b4c234a
上级 7ee5f918
......@@ -69,8 +69,8 @@ final class WarExploder {
System.out.println("Exploding hudson.war at "+war);
new FilePath(explodeDir).deleteRecursive();
new FilePath(war).unzip(new FilePath(explodeDir));
if(!explodeDir.exists()) // this is supposed to be impossible, but I'm investigating HUDSON-2605
throw new IOException("Failed to explode "+war);
// Recreating the File Object seems to be necessary to fix HUDSON-2605
timestamp = timestamp.getCanonicalFile();
new FileOutputStream(timestamp).close();
timestamp.setLastModified(war.lastModified());
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册