Search in sources :

Example 51 with WorkspaceCompilationInfo

use of org.kie.workbench.common.services.backend.compiler.impl.WorkspaceCompilationInfo in project kie-wb-common by kiegroup.

the class DefaultRemoteExecutor method internalBuild.

private CompletableFuture<KieCompilationResponse> internalBuild(String projectPath, String mavenRepoPath, boolean skipProjectDepCreation, String[] args) {
    WorkspaceCompilationInfo info = new WorkspaceCompilationInfo(Paths.get(projectPath));
    AFCompiler compiler = getCompiler(projectPath);
    CompilationRequest req = new DefaultCompilationRequest(mavenRepoPath, info, args, skipProjectDepCreation);
    return runInItsOwnThread(compiler, req);
}
Also used : WorkspaceCompilationInfo(org.kie.workbench.common.services.backend.compiler.impl.WorkspaceCompilationInfo) DefaultCompilationRequest(org.kie.workbench.common.services.backend.compiler.impl.DefaultCompilationRequest) AFCompiler(org.kie.workbench.common.services.backend.compiler.AFCompiler) CompilationRequest(org.kie.workbench.common.services.backend.compiler.CompilationRequest) DefaultCompilationRequest(org.kie.workbench.common.services.backend.compiler.impl.DefaultCompilationRequest)

Example 52 with WorkspaceCompilationInfo

use of org.kie.workbench.common.services.backend.compiler.impl.WorkspaceCompilationInfo in project kie-wb-common by kiegroup.

the class DefaultRemoteExecutor method setupCompileInfo.

private CompilerAggregateEntryCache setupCompileInfo(String workingDir) {
    AFCompiler compiler = new KieAfterDecorator(new OutputLogAfterDecorator(new ClasspathDepsAfterDecorator(new BaseMavenCompiler(true, true))));
    WorkspaceCompilationInfo info = new WorkspaceCompilationInfo(Paths.get(workingDir));
    return new CompilerAggregateEntryCache(compiler, info);
}
Also used : KieAfterDecorator(org.kie.workbench.common.services.backend.compiler.impl.decorators.KieAfterDecorator) WorkspaceCompilationInfo(org.kie.workbench.common.services.backend.compiler.impl.WorkspaceCompilationInfo) ClasspathDepsAfterDecorator(org.kie.workbench.common.services.backend.compiler.impl.decorators.ClasspathDepsAfterDecorator) OutputLogAfterDecorator(org.kie.workbench.common.services.backend.compiler.impl.decorators.OutputLogAfterDecorator) BaseMavenCompiler(org.kie.workbench.common.services.backend.compiler.impl.BaseMavenCompiler) AFCompiler(org.kie.workbench.common.services.backend.compiler.AFCompiler)

Aggregations

WorkspaceCompilationInfo (org.kie.workbench.common.services.backend.compiler.impl.WorkspaceCompilationInfo)52 DefaultCompilationRequest (org.kie.workbench.common.services.backend.compiler.impl.DefaultCompilationRequest)50 Test (org.junit.Test)38 Path (org.uberfire.java.nio.file.Path)34 CompilationRequest (org.kie.workbench.common.services.backend.compiler.CompilationRequest)30 AFCompiler (org.kie.workbench.common.services.backend.compiler.AFCompiler)26 CompilationResponse (org.kie.workbench.common.services.backend.compiler.CompilationResponse)18 HashMap (java.util.HashMap)13 KieCompilationResponse (org.kie.workbench.common.services.backend.compiler.impl.kie.KieCompilationResponse)13 JGitFileSystem (org.uberfire.java.nio.fs.jgit.JGitFileSystem)13 File (java.io.File)12 Ignore (org.junit.Ignore)12 URI (java.net.URI)8 InternalKieModule (org.drools.compiler.kie.builder.impl.InternalKieModule)6 KieModuleMetaInfo (org.drools.core.rule.KieModuleMetaInfo)6 Git (org.eclipse.jgit.api.Git)6 KieModule (org.kie.api.builder.KieModule)6 RevCommit (org.eclipse.jgit.revwalk.RevCommit)5 FileInputStream (java.io.FileInputStream)4 InputStream (java.io.InputStream)4