mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-10-31 10:35:56 +01:00 
			
		
		
		
	Merged in bugfix/read_vcs_versions (pull request #178)
Fix class loader for creation of vcs version string
This commit is contained in:
		| @@ -53,6 +53,7 @@ import sonia.scm.io.INIConfigurationWriter; | ||||
| import sonia.scm.io.INISection; | ||||
| import sonia.scm.logging.SVNKitLogger; | ||||
| import sonia.scm.plugin.Extension; | ||||
| import sonia.scm.plugin.PluginLoader; | ||||
| import sonia.scm.repository.spi.HookEventFacade; | ||||
| import sonia.scm.repository.spi.SvnRepositoryServiceProvider; | ||||
| import sonia.scm.store.ConfigurationStoreFactory; | ||||
| @@ -96,9 +97,10 @@ public class SvnRepositoryHandler | ||||
|   @Inject | ||||
|   public SvnRepositoryHandler(ConfigurationStoreFactory storeFactory, | ||||
|                               HookEventFacade eventFacade, | ||||
|                               RepositoryLocationResolver repositoryLocationResolver) | ||||
|                               RepositoryLocationResolver repositoryLocationResolver, | ||||
|                               PluginLoader pluginLoader) | ||||
|   { | ||||
|     super(storeFactory, repositoryLocationResolver); | ||||
|     super(storeFactory, repositoryLocationResolver, pluginLoader); | ||||
|  | ||||
|     // register logger | ||||
|     SVNDebugLog.setDefaultLog(new SVNKitLogger()); | ||||
|   | ||||
| @@ -89,7 +89,7 @@ public class SvnRepositoryHandlerTest extends SimpleRepositoryHandlerTestBase { | ||||
|   protected RepositoryHandler createRepositoryHandler(ConfigurationStoreFactory factory, | ||||
|                                                       RepositoryLocationResolver locationResolver, | ||||
|                                                       File directory)  { | ||||
|     SvnRepositoryHandler handler = new SvnRepositoryHandler(factory, null, locationResolver); | ||||
|     SvnRepositoryHandler handler = new SvnRepositoryHandler(factory, null, locationResolver, null); | ||||
|  | ||||
|     handler.init(contextProvider); | ||||
|  | ||||
| @@ -105,7 +105,7 @@ public class SvnRepositoryHandlerTest extends SimpleRepositoryHandlerTestBase { | ||||
|   public void getDirectory() { | ||||
|     when(factory.withType(any())).thenCallRealMethod(); | ||||
|     SvnRepositoryHandler repositoryHandler = new SvnRepositoryHandler(factory, | ||||
|       facade, locationResolver); | ||||
|       facade, locationResolver, null); | ||||
|  | ||||
|     SvnConfig svnConfig = new SvnConfig(); | ||||
|     repositoryHandler.setConfig(svnConfig); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user