@Test public void buildWithOverrideExistentProject() throws Exception { AFCompilerService service = new DefaultKieCompilerService(); Map<org.uberfire.java.nio.file.Path, InputStream> override = new HashMap<>(); org.uberfire.java.nio.file.Path path = org.uberfire.java.nio.file.Paths.get(tmpRoot + "/dummy/src/main/java/dummy/DummyOverride.java"); InputStream input = new FileInputStream(new File("target/test-classes/dummy_override/src/main/java/dummy/DummyOverride.java")); override.put(path, input); CompletableFuture<KieCompilationResponse> futureRes = service.build(Paths.get(tmpRoot.toAbsolutePath() + "/dummy"), mavenRepoPath, TestUtilMaven.getSettingsFile(), override); KieCompilationResponse res = futureRes.get(); assertThat(res.isSuccessful()).isTrue(); }
@Override public CompletableFuture<KieCompilationResponse> build(Path projectPath, String mavenRepoPath, String settingXML) { return localExecutor.build(projectPath, mavenRepoPath, settingXML); }
DefaultKieCompilerService implements AFCompilerService { @Override public CompletableFuture<KieCompilationResponse> build(Path projectPath, String mavenRepoPath, String settingXML) { return localExecutor.build(projectPath, mavenRepoPath, settingXML); } }
DefaultKieCompilerService implements AFCompilerService { @Override public CompletableFuture<KieCompilationResponse> build(Path projectPath, String mavenRepoPath, String settingXML) { return localExecutor.build(projectPath, mavenRepoPath, settingXML); } DefaultKieCompilerService(); }
DefaultKieCompilerService implements AFCompilerService { @Override public CompletableFuture<KieCompilationResponse> build(Path projectPath, String mavenRepoPath, String settingXML) { return localExecutor.build(projectPath, mavenRepoPath, settingXML); } DefaultKieCompilerService(); @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); @Override CompletableFuture<KieCompilationResponse> build(String projectPath, String mavenRepoPath, String settingXML, Boolean skipPrjDependenciesCreationList); @Override CompletableFuture<KieCompilationResponse> build(String projectPath, String mavenRepoPath, String settingXML); @Override CompletableFuture<KieCompilationResponse> buildAndInstall(String projectPath, String mavenRepoPath, String settingXML); @Override CompletableFuture<KieCompilationResponse> buildAndInstall(String projectPath, String mavenRepoPath, String settingXML, Boolean skipPrjDependenciesCreationList); @Override CompletableFuture<KieCompilationResponse> buildSpecialized(String projectPath, String mavenRepoPath, String settingXML, String[] args); @Override CompletableFuture<KieCompilationResponse> buildSpecialized(String projectPath, String mavenRepoPath, String[] args, Boolean skipPrjDependenciesCreationList); }
DefaultKieCompilerService implements AFCompilerService { @Override public CompletableFuture<KieCompilationResponse> build(Path projectPath, String mavenRepoPath, String settingXML) { return localExecutor.build(projectPath, mavenRepoPath, settingXML); } DefaultKieCompilerService(); @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); @Override CompletableFuture<KieCompilationResponse> build(String projectPath, String mavenRepoPath, String settingXML, Boolean skipPrjDependenciesCreationList); @Override CompletableFuture<KieCompilationResponse> build(String projectPath, String mavenRepoPath, String settingXML); @Override CompletableFuture<KieCompilationResponse> buildAndInstall(String projectPath, String mavenRepoPath, String settingXML); @Override CompletableFuture<KieCompilationResponse> buildAndInstall(String projectPath, String mavenRepoPath, String settingXML, Boolean skipPrjDependenciesCreationList); @Override CompletableFuture<KieCompilationResponse> buildSpecialized(String projectPath, String mavenRepoPath, String settingXML, String[] args); @Override CompletableFuture<KieCompilationResponse> buildSpecialized(String projectPath, String mavenRepoPath, String[] args, Boolean skipPrjDependenciesCreationList);  }