Windows results in NoClassDefFoundError on Launcher because of the format?

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22273 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-09-28 22:19:42 +00:00
1 parent 7c63b5215f
commit eb7fa69a4c
1 file changed
+2 -1
@@ -37,6 +37,7 @@ import java.net.URLClassLoader;
import java.net.URL;
import org.apache.commons.io.output.TeeOutputStream;
import org.apache.commons.io.FileUtils;
/**
* Hides the logic of starting/stopping a channel for test.
@@ -162,7 +163,7 @@ interface ChannelRunner {
URLClassLoader ucl = (URLClassLoader)getClass().getClassLoader();
for (URL url : ucl.getURLs()) {
if (buf.length()>0) buf.append(File.pathSeparatorChar);
buf.append(url.getPath()); // assume all of them are file URLs
buf.append(FileUtils.toFile(url)); // assume all of them are file URLs
}
return buf.toString();
}