Skip to content

Commit ced79b3

Browse files
committed
Remove check for enterprise plugin
The enterprise plugin is long, long gone and would unlikely to be compatible with any modern (or even most old and ancient) version of Openfire. This comit removes the explicit check for its existence.
1 parent ed6fc9d commit ced79b3

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/java/org/jivesoftware/openfire/plugin/MonitoringPlugin.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package org.jivesoftware.openfire.plugin;
1818

1919
import java.io.File;
20-
import java.io.FileFilter;
2120
import java.io.IOException;
2221
import java.nio.file.Files;
2322
import java.nio.file.Path;
@@ -173,13 +172,6 @@ public void initializePlugin(PluginManager manager, File pluginDirectory) {
173172
xep0313Support2 = new Xep0313Support2(XMPPServer.getInstance());
174173
xep0313Support2.start();
175174

176-
// Check if we Enterprise is installed and stop loading this plugin if found
177-
if (manager.getPluginByName("enterprise").isPresent()) {
178-
// Do not load this plugin since Enterprise is still installed
179-
System.out.println("Enterprise plugin found. Stopping Monitoring Plugin");
180-
throw new IllegalStateException("This plugin cannot run next to the Enterprise plugin");
181-
}
182-
183175
// Make sure that the monitoring folder exists under the home directory
184176
final Path monitoringFolder = JiveGlobals.getHomePath().resolve(MonitoringConstants.NAME);
185177
if (!Files.exists(monitoringFolder))

0 commit comments

Comments
 (0)