Commit da889efd authored by Janne Valkealahti's avatar Janne Valkealahti Committed by Dave Syer

Fix PropertiesLauncher for wildcard entries in parent classpath

This small change now plays nice with wildcard classpath
entries coming from a parent classloader as its urls.
parent f448e79f
...@@ -406,6 +406,12 @@ public class PropertiesLauncher extends Launcher { ...@@ -406,6 +406,12 @@ public class PropertiesLauncher extends Launcher {
if (url.toString().endsWith(".jar") || url.toString().endsWith(".zip")) { if (url.toString().endsWith(".jar") || url.toString().endsWith(".zip")) {
lib.add(0, new JarFileArchive(new File(url.toURI()))); lib.add(0, new JarFileArchive(new File(url.toURI())));
} }
else if (url.toString().endsWith("/*")) {
String name = url.getFile();
lib.add(0,
new ExplodedArchive(new File(name.substring(0,
name.length() - 1))));
}
else { else {
lib.add(0, new ExplodedArchive(new File(url.getFile()))); lib.add(0, new ExplodedArchive(new File(url.getFile())));
} }
......
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