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 be91c2ed0e6c1371b7d8e3d43fda606650c34e28..e4157b63e7d7aff9bf17283033d9716c37ec71e8 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 {