Commit fb747247 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Fixed unloading plugins with JSP pages (JM-321).


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1589 b35dd754-fafc-0310-a699-88a17e54d16e
parent 202c7955
......@@ -280,13 +280,13 @@ public class PluginManager {
if (plugin == null) {
return;
}
File webXML = new File(pluginDirectory, "web" + File.separator + "WEB-INF" +
File webXML = new File(pluginDirectory, pluginName + File.separator + "web" + File.separator + "WEB-INF" +
File.separator + "web.xml");
if (webXML.exists()) {
AdminConsole.removeModel(pluginName);
PluginServlet.unregisterServlets(webXML);
}
File customWebXML = new File(pluginDirectory, "web" + File.separator + "WEB-INF" +
File customWebXML = new File(pluginDirectory, pluginName + File.separator + "web" + File.separator + "WEB-INF" +
File.separator + "web-custom.xml");
if (customWebXML.exists()) {
PluginServlet.unregisterServlets(customWebXML);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment