Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ protected void loadImplementationsInJar(
boolean match = PATH_MATCHER.match(subPattern, shortName);
LOG.debug("Found resource: {} matching pattern: {} -> {}", shortName, subPattern, match);
if (match) {
Resource resource = new PackageScanJarResource("jar", url, name);
Resource resource = new PackageScanJarResource("jar", url, shortName);
resources.add(resource);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,15 @@
import java.net.URLClassLoader;

import org.apache.camel.support.ResourceSupport;
import org.apache.camel.util.FileUtil;
import org.apache.camel.util.StringHelper;

public class PackageScanJarResource extends ResourceSupport {

private final URL url;
private final URLClassLoader uc;

public PackageScanJarResource(String scheme, URL url, String location) {
super(scheme, url.getFile() + FileUtil.stripPath(location));
public PackageScanJarResource(String scheme, URL url, String shortName) {
super(scheme, url.getFile() + shortName);
this.url = url;
this.uc = new URLClassLoader(new URL[] { url });
}
Expand Down
Loading