提交 425f91b1 编写于 作者: J jglick

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
上级 15a57613
......@@ -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());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册