Commit 8fe963c4 authored by Hal Deadman's avatar Hal Deadman

make sure jars load in consistent order

alphabetical sort, case sensitivity of path names depends on platform
parent ddbe66f2
......@@ -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