Class DefaultKieCompilerService

  • All Implemented Interfaces:
    AFCompilerService

    @ApplicationScoped
    public class DefaultKieCompilerService
    extends Object
    implements AFCompilerService
    Define the Default Implementation of a AppFormer Compiler Service
    • 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 settingXML)
      When a HTTP call asks a build this method 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 Requests
      CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> build​(String projectPath, String mavenRepoPath, String settingXML, Boolean skipPrjDependenciesCreationList)
      Suitable for the REST Builds
      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
      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)
      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 Requests
      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)
      Run a mvn compile on the projectPath with mavenRepoPath specified, overriding the content contained in the Map, 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
      CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> buildAndInstall​(String projectPath, String mavenRepoPath, String settingXML)
      When a HTTP call asks a build this method 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 Requests
      CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> buildAndInstall​(String projectPath, String mavenRepoPath, String settingXML, Boolean skipPrjDependenciesCreationList)
      When a HTTP call asks a build this method 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 Requests
      CompletableFuture<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 Requests
      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)
      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 Requests
      CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> buildSpecialized​(String projectPath, String mavenRepoPath, String[] args, Boolean skipPrjDependenciesCreationList)
      When a HTTP call asks a build this method 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
      CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> buildSpecialized​(String projectPath, String mavenRepoPath, String settingXML, String[] args)
      When a HTTP call asks a build this method 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
      CompletableFuture<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 Requests
      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)
      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

      • DefaultKieCompilerService

        public DefaultKieCompilerService()
    • 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:
        build in interface AFCompilerService
      • 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: AFCompilerService
        Run a mvn compile on the projectPath with mavenRepoPath specified, overriding the content contained in the Map, 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:
        build in interface AFCompilerService
      • 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: AFCompilerService
        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 Requests
        Specified by:
        build in interface AFCompilerService
      • 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: AFCompilerService
        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 Requests
        Specified by:
        buildAndInstall in interface AFCompilerService
      • 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: AFCompilerService
        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 Requests
        Specified by:
        buildAndInstall in interface AFCompilerService
      • 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: AFCompilerService
        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
        Specified by:
        buildSpecialized in interface AFCompilerService
      • 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: AFCompilerService
        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
        Specified by:
        buildSpecialized in interface AFCompilerService
      • build

        public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> build​(String projectPath,
                                                                                                                           String mavenRepoPath,
                                                                                                                           String settingXML)
        Description copied from interface: AFCompilerService
        When a HTTP call asks a build this method 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 Requests
        Specified by:
        build in interface AFCompilerService
      • buildAndInstall

        public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> buildAndInstall​(String projectPath,
                                                                                                                                     String mavenRepoPath,
                                                                                                                                     String settingXML)
        Description copied from interface: AFCompilerService
        When a HTTP call asks a build this method 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 Requests
        Specified by:
        buildAndInstall in interface AFCompilerService
      • buildAndInstall

        public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> buildAndInstall​(String projectPath,
                                                                                                                                     String mavenRepoPath,
                                                                                                                                     String settingXML,
                                                                                                                                     Boolean skipPrjDependenciesCreationList)
        Description copied from interface: AFCompilerService
        When a HTTP call asks a build this method 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 Requests
        Specified by:
        buildAndInstall in interface AFCompilerService
      • buildSpecialized

        public CompletableFuture<org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse> buildSpecialized​(String projectPath,
                                                                                                                                      String mavenRepoPath,
                                                                                                                                      String settingXML,
                                                                                                                                      String[] args)
        Description copied from interface: AFCompilerService
        When a HTTP call asks a build this method 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
        Specified by:
        buildSpecialized in interface AFCompilerService
      • 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: AFCompilerService
        When a HTTP call asks a build this method 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
        Specified by:
        buildSpecialized in interface AFCompilerService