Commit 2f558943 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Removed unused code.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@5931 b35dd754-fafc-0310-a699-88a17e54d16e
parent e2caf903
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
package org.jivesoftware.wildfire.container; package org.jivesoftware.wildfire.container;
import org.jivesoftware.util.JiveGlobals;
import org.jivesoftware.util.LocaleUtils; import org.jivesoftware.util.LocaleUtils;
import org.jivesoftware.util.Log; import org.jivesoftware.util.Log;
import org.jivesoftware.wildfire.HttpServerManager; import org.jivesoftware.wildfire.HttpServerManager;
...@@ -38,24 +37,6 @@ public class AdminConsolePlugin implements Plugin { ...@@ -38,24 +37,6 @@ public class AdminConsolePlugin implements Plugin {
public void initializePlugin(PluginManager manager, File pluginDir) { public void initializePlugin(PluginManager manager, File pluginDir) {
this.pluginDir = pluginDir; this.pluginDir = pluginDir;
try { try {
File logDir;
String logDirectory = JiveGlobals.getXMLProperty("log.directory");
// Check if the "log.directory" was defined
if (logDirectory != null) {
// Remove last separator character (if any)
if (!logDirectory.endsWith(File.separator)) {
logDirectory = logDirectory + File.separator;
}
logDir = new File(logDirectory);
}
else {
// Create log file in the default directory
logDir = new File(JiveGlobals.getHomeDirectory(), "logs");
}
if (!logDir.exists()) {
logDir.mkdirs();
}
serverManager.setAdminConsoleContext(createWebAppContext()); serverManager.setAdminConsoleContext(createWebAppContext());
} }
catch (Exception e) { catch (Exception e) {
......
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