public class DefaultMavenCompiler extends BaseMavenCompiler<CompilationResponse> implements MavenCompiler
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 |
|---|
DefaultMavenCompiler() |
| Modifier and Type | Method and Description |
|---|---|
CompilationResponse |
buildDefaultCompilationResponse(Boolean value) |
CompilationResponse |
buildDefaultCompilationResponse(Boolean value,
List<String> output) |
protected CompilationResponse |
buildDefaultCompilationResponse(Boolean value,
String message,
List<String> output) |
compileSync, isValidMavenRepoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompileSyncpublic CompilationResponse buildDefaultCompilationResponse(Boolean value)
buildDefaultCompilationResponse in interface AFCompiler<CompilationResponse>public CompilationResponse buildDefaultCompilationResponse(Boolean value, List<String> output)
buildDefaultCompilationResponse in interface AFCompiler<CompilationResponse>protected CompilationResponse buildDefaultCompilationResponse(Boolean value, String message, List<String> output)
buildDefaultCompilationResponse in class BaseMavenCompiler<CompilationResponse>Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.