mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-11-03 20:15:52 +01:00 
			
		
		
		
	added support for plugin directories
This commit is contained in:
		@@ -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);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user