mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-04 23:55:52 +00:00
Had findResource but no findResources; adding impl just to be sure.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@5348 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
15a5761358
commit
425f91b1d9
1 file changed
+11
@@ -3,6 +3,7 @@ package hudson;
|
||||
import hudson.model.Hudson;
|
||||
import hudson.util.Service;
|
||||
|
||||
import java.util.Enumeration;
|
||||
import javax.servlet.ServletContext;
|
||||
import java.io.File;
|
||||
import java.io.FilenameFilter;
|
||||
@@ -12,6 +13,7 @@ import java.io.PrintWriter;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
@@ -173,6 +175,15 @@ public final class PluginManager {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Enumeration<URL> findResources(String name) throws IOException {
|
||||
List<URL> resources = new ArrayList<URL>();
|
||||
for (PluginWrapper p : activePlugins) {
|
||||
resources.addAll(Collections.list(p.classLoader.getResources(name)));
|
||||
}
|
||||
return Collections.enumeration(resources);
|
||||
}
|
||||
}
|
||||
|
||||
private static final Logger LOGGER = Logger.getLogger(PluginManager.class.getName());
|
||||
|
||||
Reference in new issue
Block a user