diff --git a/src/test/java/hudson/remoting/ForkRunner.java b/src/test/java/hudson/remoting/ForkRunner.java index a7ca4451a..d7965e1d6 100644 --- a/src/test/java/hudson/remoting/ForkRunner.java +++ b/src/test/java/hudson/remoting/ForkRunner.java @@ -61,13 +61,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