Commit 96108d07 authored by Hal Deadman's avatar Hal Deadman Committed by akrherz

make sure jars load in consistent order

alphabetical sort, case sensitivity of path names depends on platform
parent 77cdefe1
......@@ -25,6 +25,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
......@@ -70,6 +71,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