Commit bab6f4cf authored by Jay Kline's avatar Jay Kline Committed by jay

Fixes JM-1077 (location of admin lib dir)



git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8582 b35dd754-fafc-0310-a699-88a17e54d16e
parent 9fd11ffd
...@@ -44,6 +44,7 @@ public class ServerStarter { ...@@ -44,6 +44,7 @@ public class ServerStarter {
* Default to this location if one has not been specified * Default to this location if one has not been specified
*/ */
private static final String DEFAULT_LIB_DIR = "../lib"; private static final String DEFAULT_LIB_DIR = "../lib";
private static final String DEFAULT_ADMIN_LIB_DIR = "../plugins/admin/webapp/WEB-INF/lib";
public static void main(String [] args) { public static void main(String [] args) {
new ServerStarter().start(); new ServerStarter().start();
...@@ -80,10 +81,21 @@ public class ServerStarter { ...@@ -80,10 +81,21 @@ public class ServerStarter {
// Unpack any pack files. // Unpack any pack files.
unpackArchives(libDir, true); unpackArchives(libDir, true);
File adminLibDir = new File("../plugins/admin/webapp/WEB-INF/lib"); String adminLibDirString = System.getProperty("openfireHome");
if (adminLibDirString == null) {
adminLibDirString = DEFAULT_ADMIN_LIB_DIR;
}
else {
adminLibDirString = adminLibDirString+"/plugins/admin/webapp/WEB-INF/lib";
}
File adminLibDir = new File(adminLibDirString);
if (adminLibDir.exists()) { if (adminLibDir.exists()) {
unpackArchives(adminLibDir, false); unpackArchives(adminLibDir, false);
} }
else {
Log.warn("Admin Lib Directory " + adminLibDirString +
" does not exist. Web admin console may not work.");
}
ClassLoader loader = new JiveClassLoader(parent, libDir); ClassLoader loader = new JiveClassLoader(parent, libDir);
......
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