@Test public void buildAndInstallNonExistentProject() throws Exception{ DefaultLocalExecutor executor = new DefaultLocalExecutor(executorService); CompletableFuture<KieCompilationResponse> futureRes = executor.buildAndInstall(tmpRoot, mavenRepoPath, TestUtilMaven.getSettingsFile()); KieCompilationResponse res = futureRes.get(); assertThat(res.isSuccessful()).isFalse(); }
@Override public CompletableFuture<KieCompilationResponse> buildAndInstall(Path projectPath, String mavenRepoPath, String settingXML) { return internalBuild(projectPath, mavenRepoPath, settingXML, Boolean.FALSE, MavenCLIArgs.INSTALL); }
DefaultLocalExecutor implements CompilerExecutor { @Override public CompletableFuture<KieCompilationResponse> buildAndInstall(Path projectPath, String mavenRepoPath, String settingXML) { return internalBuild(projectPath, mavenRepoPath, settingXML, Boolean.FALSE, MavenCLIArgs.INSTALL); } }
DefaultLocalExecutor implements CompilerExecutor { @Override public CompletableFuture<KieCompilationResponse> buildAndInstall(Path projectPath, String mavenRepoPath, String settingXML) { return internalBuild(projectPath, mavenRepoPath, settingXML, Boolean.FALSE, MavenCLIArgs.INSTALL); } DefaultLocalExecutor(ExecutorService executorService); }
DefaultLocalExecutor implements CompilerExecutor { @Override public CompletableFuture<KieCompilationResponse> buildAndInstall(Path projectPath, String mavenRepoPath, String settingXML) { return internalBuild(projectPath, mavenRepoPath, settingXML, Boolean.FALSE, MavenCLIArgs.INSTALL); } DefaultLocalExecutor(ExecutorService executorService); @Override CompletableFuture<KieCompilationResponse> build(Path projectPath,
                                                           String mavenRepoPath,
                                                           String settingXML); @Override CompletableFuture<KieCompilationResponse> build(Path projectPath,
                                                           String mavenRepoPath,
                                                           String settingXML,
                                                           Map<Path, InputStream> override); @Override CompletableFuture<KieCompilationResponse> build(Path projectPath,
                                                           String mavenRepoPath,
                                                           String settingXML,
                                                           Boolean skipPrjDependenciesCreationList); @Override CompletableFuture<KieCompilationResponse> buildAndInstall(Path projectPath,
                                                                     String mavenRepoPath,
                                                                     String settingXML); @Override CompletableFuture<KieCompilationResponse> buildAndInstall(Path projectPath,
                                                                     String mavenRepoPath,
                                                                     String settingXML,
                                                                     Boolean skipPrjDependenciesCreationList); @Override CompletableFuture<KieCompilationResponse> buildSpecialized(Path projectPath,
                                                                      String mavenRepoPath,
                                                                      String[] args); @Override CompletableFuture<KieCompilationResponse> buildSpecialized(Path projectPath,
                                                                      String mavenRepoPath,
                                                                      String[] args,
                                                                      Boolean skipPrjDependenciesCreationList); }
DefaultLocalExecutor implements CompilerExecutor { @Override public CompletableFuture<KieCompilationResponse> buildAndInstall(Path projectPath, String mavenRepoPath, String settingXML) { return internalBuild(projectPath, mavenRepoPath, settingXML, Boolean.FALSE, MavenCLIArgs.INSTALL); } DefaultLocalExecutor(ExecutorService executorService); @Override CompletableFuture<KieCompilationResponse> build(Path projectPath,
                                                           String mavenRepoPath,
                                                           String settingXML); @Override CompletableFuture<KieCompilationResponse> build(Path projectPath,
                                                           String mavenRepoPath,
                                                           String settingXML,
                                                           Map<Path, InputStream> override); @Override CompletableFuture<KieCompilationResponse> build(Path projectPath,
                                                           String mavenRepoPath,
                                                           String settingXML,
                                                           Boolean skipPrjDependenciesCreationList); @Override CompletableFuture<KieCompilationResponse> buildAndInstall(Path projectPath,
                                                                     String mavenRepoPath,
                                                                     String settingXML); @Override CompletableFuture<KieCompilationResponse> buildAndInstall(Path projectPath,
                                                                     String mavenRepoPath,
                                                                     String settingXML,
                                                                     Boolean skipPrjDependenciesCreationList); @Override CompletableFuture<KieCompilationResponse> buildSpecialized(Path projectPath,
                                                                      String mavenRepoPath,
                                                                      String[] args); @Override CompletableFuture<KieCompilationResponse> buildSpecialized(Path projectPath,
                                                                      String mavenRepoPath,
                                                                      String[] args,
                                                                      Boolean skipPrjDependenciesCreationList);  }