提交 ce05ef17 编写于 作者: K kohsuke

[HUDSON-6504] a better approach is to define another overloaded version of the...

[HUDSON-6504] a better approach is to define another overloaded version of the preload method that takes URLs of the jars.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@31874 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c00706f4
......@@ -540,6 +540,10 @@ public class Channel implements VirtualChannel, IChannel {
return call(new PreloadJarTask(jars,local));
}
public boolean preloadJar(ClassLoader local, URL... jars) throws IOException, InterruptedException {
return call(new PreloadJarTask(jars,local));
}
/**
* {@inheritDoc}
*/
......
......@@ -31,7 +31,7 @@ import java.net.URL;
*
* @author Kohsuke Kawaguchi
*/
public final class PreloadJarTask implements DelegatingCallable<Boolean,IOException> {
final class PreloadJarTask implements DelegatingCallable<Boolean,IOException> {
/**
* Jar file to be preloaded.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册