Commit aae4f28b authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Do not load monitoring plugin if enterprise plugin is detected

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches@10196 b35dd754-fafc-0310-a699-88a17e54d16e
parent cc6304e4
...@@ -82,6 +82,13 @@ public class MonitoringPlugin implements Plugin { ...@@ -82,6 +82,13 @@ public class MonitoringPlugin implements Plugin {
public void initializePlugin(PluginManager manager, File pluginDirectory) { public void initializePlugin(PluginManager manager, File pluginDirectory) {
System.out.println("Starting Monitoring Plugin"); System.out.println("Starting Monitoring Plugin");
// Check that the enterprise plugin is not being used
if (manager.getPlugin("enterprise") != null) {
// Stop loading this plugin since the enterprise is being used
System.out.println("Enterprise plugin found. Stopping Monitoring Plugin");
throw new IllegalStateException("This plugin cannot run next to the Enterprise plugin");
}
shuttingDown = false; shuttingDown = false;
// Make sure that the enteprise folder exists under the home directory // Make sure that the enteprise folder exists under the home directory
......
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