Commit 85ce5c0d authored by Dave Cridland's avatar Dave Cridland Committed by GitHub

Merge pull request #737 from hdeadman/jar_order_master

make sure jars in openfire lib are added to the classpath in predictable order
parents 4bf813b9 8fe963c4
......@@ -21,6 +21,7 @@ import java.io.FilenameFilter;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Arrays;
/**
* A simple classloader to extend the classpath to
......@@ -66,6 +67,9 @@ class JiveClassLoader extends URLClassLoader {
return;
}
// sort jars otherwise order differs between installations (e.g. it's not alphabetical)
// order may matter if trying to patch an install by adding patch jar to lib folder
Arrays.sort(jars);
for (int i = 0; i < jars.length; i++) {
if (jars[i].isFile()) {
addURL(jars[i].toURI().toURL());
......
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