From c9df23cbae5ff60387fb677b7bde90645fdb6f5c Mon Sep 17 00:00:00 2001 From: martinficker Date: Tue, 6 Jan 2009 09:29:41 +0000 Subject: [PATCH] Attempt to fix Issue-2605 git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14192 71c3de6d-444a-0410-be80-ed276b4c234a --- test/src/main/java/org/jvnet/hudson/test/WarExploder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/main/java/org/jvnet/hudson/test/WarExploder.java b/test/src/main/java/org/jvnet/hudson/test/WarExploder.java index be91c2ed0e..e4157b63e7 100644 --- a/test/src/main/java/org/jvnet/hudson/test/WarExploder.java +++ b/test/src/main/java/org/jvnet/hudson/test/WarExploder.java @@ -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 {