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 477567ad818f49dddde7dd55c0fc1009c5c3ac72..6531553c5d25ad922800bed505279323315fddf6 100644 --- a/test/src/main/java/org/jvnet/hudson/test/WarExploder.java +++ b/test/src/main/java/org/jvnet/hudson/test/WarExploder.java @@ -65,16 +65,11 @@ final class WarExploder { * Explodes hudson.war, if necessary, and returns its root dir. */ private static File explode() throws Exception { - // are we in the hudson main workspace? If so, pick up hudson/main/war/resources + // are we in the Jenkins main workspace? If so, pick up hudson/main/war/resources // this saves the effort of packaging a war file and makes the debug cycle faster File d = new File(".").getAbsoluteFile(); - // just in case we were started from hudson instead of from hudson/main/... - if (new File(d, "main/war/target/jenkins").exists()) { - return new File(d, "main/war/target/jenkins"); - } - for( ; d!=null; d=d.getParentFile()) { if(new File(d,".jenkins").exists()) { File dir = new File(d,"war/target/jenkins");