提交 3516b99f 编写于 作者: K kohsuke

added getContainer() to gain access to the plexus container, so that I can get...

added getContainer() to gain access to the plexus container, so that I can get references to objects in it.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1783 71c3de6d-444a-0410-be80-ed276b4c234a
上级 5f0283fc
......@@ -26,6 +26,7 @@ import org.codehaus.plexus.component.repository.ComponentDescriptor;
import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
import org.codehaus.plexus.component.repository.exception.ComponentLifecycleException;
import org.codehaus.plexus.PlexusContainerException;
import org.codehaus.plexus.PlexusContainer;
import org.codehaus.classworlds.ClassWorld;
import org.codehaus.classworlds.DuplicateRealmException;
import org.apache.maven.project.MavenProjectBuilder;
......@@ -759,4 +760,11 @@ public class MavenEmbedder
public void setOverridingComponentsXml(URL overridingComponentsXml) {
this.overridingComponentsXml = overridingComponentsXml;
}
/**
* Gets the {@link PlexusContainer} that hosts Maven.
*/
public PlexusContainer getContainer() {
return embedder.getContainer();
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册