added support for plugin directories

This commit is contained in:
Sebastian Sdorra
2011-07-23 19:19:25 +02:00
parent 7f450c80b2
commit 57ed0dab57

View File

@@ -228,10 +228,17 @@ public class DefaultPluginLoader implements PluginLoader
try
{
if (path.startsWith("file:"))
{
path = path.substring("file:".length());
}
else
{
// jar:file:/some/path/file.jar!/META-INF/scm/plugin.xml
path = path.substring("jar:file:".length(), path.lastIndexOf("!"));
path = decodePath(path);
// jar:file:/some/path/file.jar!/META-INF/scm/plugin.xml
path = path.substring("jar:file:".length(), path.lastIndexOf("!"));
path = decodePath(path);
}
boolean corePlugin = path.matches(REGE_COREPLUGIN);