public abstract class BaseMavenCompiler<T extends CompilationResponse> extends Object implements AFCompiler<T>
MavenCompiler compiler = new DefaultMavenCompiler(); or MavenCompiler compiler = MavenCompilerFactory.getCompiler(Decorator.LOG_OUTPUT_AFTER);
WorkspaceCompilationInfo info = new WorkspaceCompilationInfo(tmp); CompilationRequest req = new DefaultCompilationRequest(mavenRepo, info,new String[]{MavenArgs.COMPILE},new HashMap<>(), Boolean.TRUE ); CompilationResponse res = compiler.compileSync(req);
| Constructor and Description |
|---|
BaseMavenCompiler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
buildDefaultCompilationResponse(Boolean aFalse,
String message,
List<String> output) |
T |
compileSync(CompilationRequest req)
Compile a project starting from the main POM in a sync way
|
static Boolean |
isValidMavenRepo(org.uberfire.java.nio.file.Path mavenRepo)
Check if the folder exists and if it's writable and readable
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildDefaultCompilationResponse, buildDefaultCompilationResponsepublic static Boolean isValidMavenRepo(org.uberfire.java.nio.file.Path mavenRepo)
mavenRepo - public T compileSync(CompilationRequest req)
AFCompilercompileSync in interface AFCompiler<T extends CompilationResponse>Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.