diff --git a/src/test/java/hudson/remoting/ForkRunner.java b/src/test/java/hudson/remoting/ForkRunner.java index e4810efe9..5552e96ef 100644 --- a/src/test/java/hudson/remoting/ForkRunner.java +++ b/src/test/java/hudson/remoting/ForkRunner.java @@ -62,13 +62,7 @@ public String getName() { } public String getClasspath() { - // this assumes we run in Maven - StringBuilder buf = new StringBuilder(); - for (String entry : System.getProperty("java.class.path").split(":")) { - if (buf.length()>0) buf.append(File.pathSeparatorChar); - buf.append(entry); - } - return buf.toString(); + return System.getProperty("java.class.path"); } @Override