Class DefaultRemoteExecutor
- java.lang.Object
-
- org.kie.workbench.common.services.backend.compiler.service.executors.DefaultRemoteExecutor
-
- All Implemented Interfaces:
RemoteExecutor
public class DefaultRemoteExecutor extends Object implements RemoteExecutor
Implementation for a local build requested by a remote execution
-
-
Constructor Summary
Constructors Constructor Description DefaultRemoteExecutor(ExecutorService executorService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse>build(String projectPath, String mavenRepoPath, String settingsXmlPath)Suitable for the REST BuildsCompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse>build(String projectPath, String mavenRepoPath, String settingsXmlPath, Boolean skipPrjDependenciesCreationList)Run a mvn compile on the projectPath with mavenRepoPath specified, maven output provided in the CompilationResponse a new CompilationRequest will be created at every invocation, useful if the project folder and maven repo changes between compilation RequestsCompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse>buildAndInstall(String projectPath, String mavenRepoPath, String settingsXmlPath)Run a mvn install on the projectPath, maven output provided in the CompilationResponse a new CompilationRequest will be created at every invocation, useful if the project folder and maven repo changes between compilation RequestsCompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse>buildAndInstall(String projectPath, String mavenRepoPath, String settingsXmlPath, Boolean skipPrjDependenciesCreationList)Run a mvn install on the projectPath, maven output provided in the CompilationResponse a new CompilationRequest will be created at every invocation, useful if the project folder and maven repo changes between compilation RequestsCompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse>buildSpecialized(String projectPath, String mavenRepoPath, String[] args)Run a mvn {args}, maven output provided in the CompilationResponse a new CompilationRequest will be created at every invocation, useful if the project folder, maven repo and maven args changes between compilation RequestsCompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse>buildSpecialized(String projectPath, String mavenRepoPath, String[] args, Boolean skipPrjDependenciesCreationList)Run a mvn {args}, maven output provided in the CompilationResponse a new CompilationRequest will be created at every invocation, useful if the project folder, maven repo and maven args changes between compilation Requests
-
-
-
Constructor Detail
-
DefaultRemoteExecutor
public DefaultRemoteExecutor(ExecutorService executorService)
-
-
Method Detail
-
build
public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> build(String projectPath, String mavenRepoPath, String settingsXmlPath)
Suitable for the REST Builds- Specified by:
buildin interfaceRemoteExecutor
-
build
public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> build(String projectPath, String mavenRepoPath, String settingsXmlPath, Boolean skipPrjDependenciesCreationList)
Description copied from interface:RemoteExecutorRun a mvn compile on the projectPath with mavenRepoPath specified, maven output provided in the CompilationResponse a new CompilationRequest will be created at every invocation, useful if the project folder and maven repo changes between compilation Requests- Specified by:
buildin interfaceRemoteExecutor
-
buildAndInstall
public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> buildAndInstall(String projectPath, String mavenRepoPath, String settingsXmlPath)
Description copied from interface:RemoteExecutorRun a mvn install on the projectPath, maven output provided in the CompilationResponse a new CompilationRequest will be created at every invocation, useful if the project folder and maven repo changes between compilation Requests- Specified by:
buildAndInstallin interfaceRemoteExecutor
-
buildAndInstall
public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> buildAndInstall(String projectPath, String mavenRepoPath, String settingsXmlPath, Boolean skipPrjDependenciesCreationList)
Description copied from interface:RemoteExecutorRun a mvn install on the projectPath, maven output provided in the CompilationResponse a new CompilationRequest will be created at every invocation, useful if the project folder and maven repo changes between compilation Requests- Specified by:
buildAndInstallin interfaceRemoteExecutor
-
buildSpecialized
public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> buildSpecialized(String projectPath, String mavenRepoPath, String[] args)
Description copied from interface:RemoteExecutorRun a mvn {args}, maven output provided in the CompilationResponse a new CompilationRequest will be created at every invocation, useful if the project folder, maven repo and maven args changes between compilation Requests- Specified by:
buildSpecializedin interfaceRemoteExecutor
-
buildSpecialized
public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> buildSpecialized(String projectPath, String mavenRepoPath, String[] args, Boolean skipPrjDependenciesCreationList)
Description copied from interface:RemoteExecutorRun a mvn {args}, maven output provided in the CompilationResponse a new CompilationRequest will be created at every invocation, useful if the project folder, maven repo and maven args changes between compilation Requests- Specified by:
buildSpecializedin interfaceRemoteExecutor
-
-