提交 eb7fa69a 编写于 作者: K kohsuke

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
上级 7c63b521
......@@ -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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册