Class DefaultLocalExecutor
- java.lang.Object
-
- org.kie.workbench.common.services.backend.compiler.service.executors.DefaultLocalExecutor
-
- All Implemented Interfaces:
CompilerExecutor
public class DefaultLocalExecutor extends Object implements CompilerExecutor
Implementation for a local build requested by a local execution (Contains NIO Objects)
-
-
Constructor Summary
Constructors Constructor Description DefaultLocalExecutor(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(org.uberfire.java.nio.file.Path projectPath, String mavenRepoPath, String settingXML)Suitable for the Local BuildsCompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse>build(org.uberfire.java.nio.file.Path projectPath, String mavenRepoPath, String settingXML, 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>build(org.uberfire.java.nio.file.Path projectPath, String mavenRepoPath, String settingXML, Map<org.uberfire.java.nio.file.Path,InputStream> override)Run a mvn compile on the projectPath with mavenRepoPath specified changing the content with the override contents, 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(org.uberfire.java.nio.file.Path projectPath, String mavenRepoPath, String settingXML)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(org.uberfire.java.nio.file.Path projectPath, String mavenRepoPath, String settingXML, 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(org.uberfire.java.nio.file.Path 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(org.uberfire.java.nio.file.Path 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
-
DefaultLocalExecutor
public DefaultLocalExecutor(ExecutorService executorService)
-
-
Method Detail
-
build
public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> build(org.uberfire.java.nio.file.Path projectPath, String mavenRepoPath, String settingXML)
Suitable for the Local Builds- Specified by:
buildin interfaceCompilerExecutor
-
build
public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> build(org.uberfire.java.nio.file.Path projectPath, String mavenRepoPath, String settingXML, Map<org.uberfire.java.nio.file.Path,InputStream> override)
Description copied from interface:CompilerExecutorRun a mvn compile on the projectPath with mavenRepoPath specified changing the content with the override contents, 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 interfaceCompilerExecutor
-
build
public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> build(org.uberfire.java.nio.file.Path projectPath, String mavenRepoPath, String settingXML, Boolean skipPrjDependenciesCreationList)
Description copied from interface:CompilerExecutorRun 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 interfaceCompilerExecutor
-
buildAndInstall
public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> buildAndInstall(org.uberfire.java.nio.file.Path projectPath, String mavenRepoPath, String settingXML)
Description copied from interface:CompilerExecutorRun 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 interfaceCompilerExecutor
-
buildAndInstall
public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> buildAndInstall(org.uberfire.java.nio.file.Path projectPath, String mavenRepoPath, String settingXML, Boolean skipPrjDependenciesCreationList)
Description copied from interface:CompilerExecutorRun 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 interfaceCompilerExecutor
-
buildSpecialized
public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> buildSpecialized(org.uberfire.java.nio.file.Path projectPath, String mavenRepoPath, String[] args)
Description copied from interface:CompilerExecutorRun 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 interfaceCompilerExecutor
-
buildSpecialized
public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> buildSpecialized(org.uberfire.java.nio.file.Path projectPath, String mavenRepoPath, String[] args, Boolean skipPrjDependenciesCreationList)
Description copied from interface:CompilerExecutorRun 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 interfaceCompilerExecutor
-
-