mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-05 16:15:54 +00:00
[HUDSON-5048] Fixed the multi-classloader support in the remoting code. I confirmed that this fixes HUDSON-4993 without modifying the warnings/analysis-core plugin.
I'm letting Hudson run the whole test suite to see if there's any regression caused by this. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24490 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
06401132b3
commit
c154d431f0
5 files changed
+167
-27
No files matched your search
@@ -408,6 +408,20 @@ public class ClassicPluginStrategy implements PluginStrategy {
|
||||
}
|
||||
|
||||
// TODO: delegate resources? watch out for diamond dependencies
|
||||
|
||||
@Override
|
||||
protected URL findResource(String name) {
|
||||
for (Dependency dep : dependencies) {
|
||||
PluginWrapper p = pluginManager.getPlugin(dep.shortName);
|
||||
if(p!=null) {
|
||||
URL url = p.classLoader.getResource(name);
|
||||
if (url!=null)
|
||||
return url;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user