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