Description: avoid drmaa code in the built jar
 The min-jaba-client.jar of upstream does not include code in engine/. Thus we
 strip code so that it does not require useless dependencies.
Author: Pierre Gruet <pgtdebian@free.fr>
Forwarded: not-needed
Last-Update: 2021-01-17

--- a/compbio/engine/Configurator.java
+++ b/compbio/engine/Configurator.java
@@ -30,8 +30,6 @@
 import compbio.engine.client.Executable;
 import compbio.engine.client.PathValidator;
 import compbio.engine.client.EngineUtil;
-import compbio.engine.cluster.drmaa.AsyncClusterRunner;
-import compbio.engine.cluster.drmaa.ClusterRunner;
 import compbio.engine.conf.DirectoryManager;
 import compbio.engine.conf.PropertyHelperManager;
 import compbio.engine.local.AsyncLocalRunner;
@@ -216,9 +214,6 @@
 	public static AsyncExecutor getAsyncEngine(ConfiguredExecutable<?> executable, Executable.ExecProvider provider) {
 
 		assert provider != Executable.ExecProvider.Any && provider != null;
-		if (provider == Executable.ExecProvider.Cluster) {
-			return new AsyncClusterRunner();
-		}
 		return new AsyncLocalRunner();
 	}
 
@@ -226,31 +221,19 @@
 			throws JobSubmissionException {
 
 		assert provider != Executable.ExecProvider.Any && provider != null;
-		if (provider == Executable.ExecProvider.Cluster) {
-			return ClusterRunner.getInstance(executable);
-		}
 		return new LocalRunner(executable);
 	}
 
 	public static AsyncExecutor getAsyncEngine(ConfiguredExecutable<?> executable) {
-		if (isTargetedForLocalExecution(executable)) {
-			return new AsyncLocalRunner();
-		}
-		return new AsyncClusterRunner();
+		return new AsyncLocalRunner();
 	}
 
 	public static AsyncExecutor getAsyncEngine(String taskId) {
-		if (isLocal(taskId)) {
-			return new AsyncLocalRunner();
-		}
-		return new AsyncClusterRunner();
+		return new AsyncLocalRunner();
 	}
 
 	public static SyncExecutor getSyncEngine(ConfiguredExecutable<?> executable) throws JobSubmissionException {
-		if (isTargetedForLocalExecution(executable)) {
-			return new LocalRunner(executable);
-		}
-		return ClusterRunner.getInstance(executable);
+		return new LocalRunner(executable);
 	}
 
 	static boolean isTargetedForLocalExecution(ConfiguredExecutable<?> executable) {
