mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2869 - starting in a path with spaces
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@985198 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
46e2e6e363
commit
b14fec3716
|
@ -301,7 +301,7 @@ public class Main {
|
||||||
File dir = iter.next();
|
File dir = iter.next();
|
||||||
// try{ System.out.println("Adding to classpath: " +
|
// try{ System.out.println("Adding to classpath: " +
|
||||||
// dir.getCanonicalPath()); }catch(Exception e){}
|
// dir.getCanonicalPath()); }catch(Exception e){}
|
||||||
urls.add(dir.toURL());
|
urls.add(dir.toURI().toURL());
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Iterator<File> iter = extensions.iterator(); iter.hasNext();) {
|
for (Iterator<File> iter = extensions.iterator(); iter.hasNext();) {
|
||||||
|
@ -329,7 +329,7 @@ public class Main {
|
||||||
// classpath: " +
|
// classpath: " +
|
||||||
// files[j].getCanonicalPath());
|
// files[j].getCanonicalPath());
|
||||||
// }catch(Exception e){}
|
// }catch(Exception e){}
|
||||||
urls.add(files[j].toURL());
|
urls.add(files[j].toURI().toURL());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue