mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-20 07:22:32 +00:00
Attempt to fix Issue-2605
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14192 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
7ee5f91849
commit
c9df23cbae
1 file changed
+2
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user