|
|
|
@ -47,7 +47,6 @@ public class LegacyExtensionFinder extends AbstractExtensionFinder {
|
|
|
|
|
@Override |
|
|
|
|
public Map<String, Set<String>> readClasspathStorages() { |
|
|
|
|
log.debug("Reading extensions storages from classpath"); |
|
|
|
|
|
|
|
|
|
Map<String, Set<String>> result = new LinkedHashMap<>(); |
|
|
|
|
|
|
|
|
|
Set<String> bucket = new HashSet<>(); |
|
|
|
@ -80,7 +79,6 @@ public class LegacyExtensionFinder extends AbstractExtensionFinder {
|
|
|
|
|
@Override |
|
|
|
|
public Map<String, Set<String>> readPluginsStorages() { |
|
|
|
|
log.debug("Reading extensions storages from plugins"); |
|
|
|
|
|
|
|
|
|
Map<String, Set<String>> result = new LinkedHashMap<>(); |
|
|
|
|
|
|
|
|
|
List<PluginWrapper> plugins = pluginManager.getPlugins(); |
|
|
|
@ -90,7 +88,7 @@ public class LegacyExtensionFinder extends AbstractExtensionFinder {
|
|
|
|
|
Set<String> bucket = new HashSet<>(); |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
URL url = plugin.getPluginClassLoader().getResource(getExtensionsResource()); |
|
|
|
|
URL url = ((PluginClassLoader) plugin.getPluginClassLoader()).findResource(getExtensionsResource()); |
|
|
|
|
if (url != null) { |
|
|
|
|
log.debug("Read '{}'", url.getFile()); |
|
|
|
|
Reader reader = new InputStreamReader(url.openStream(), "UTF-8"); |
|
|
|
|