提交 a862578a 编写于 作者: K kohsuke

fixed #368.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2551 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d90cc78a
......@@ -3,6 +3,7 @@ package hudson.maven.agent;
import org.codehaus.classworlds.ClassRealm;
import org.codehaus.classworlds.Launcher;
import org.codehaus.classworlds.NoSuchRealmException;
import org.codehaus.classworlds.DefaultClassRealm;
import java.io.ByteArrayInputStream;
import java.io.File;
......@@ -43,7 +44,8 @@ public class Main {
// create a realm for loading remoting subsystem.
// this needs to be able to see maven.
ClassRealm remoting = launcher.getWorld().getRealm("plexus.core.maven").createChildRealm("hudson-remoting");
ClassRealm remoting = new DefaultClassRealm(launcher.getWorld(),"hudson-remoting", launcher.getSystemClassLoader());
remoting.setParent(launcher.getWorld().getRealm("plexus.core.maven"));
remoting.addConstituent(remotingJar.toURL());
// we'll use stdin/out to talk to the host,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册