Commit d15c7a9b authored by Günther Niess's avatar Günther Niess Committed by niess

OF-46: Fix space escaping

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11553 b35dd754-fafc-0310-a699-88a17e54d16e
parent 3679d972
......@@ -48,7 +48,7 @@ class JiveClassLoader extends URLClassLoader {
* @throws java.net.MalformedURLException if the libDir path is not valid.
*/
JiveClassLoader(ClassLoader parent, File libDir) throws MalformedURLException {
super(new URL[] { libDir.toURL() }, parent);
super(new URL[] { libDir.toURI().toURL() }, parent);
File[] jars = libDir.listFiles(new FilenameFilter() {
public boolean accept(File dir, String name) {
......@@ -71,7 +71,7 @@ class JiveClassLoader extends URLClassLoader {
for (int i = 0; i < jars.length; i++) {
if (jars[i].isFile()) {
addURL(jars[i].toURL());
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