@Named @Singleton public class DefaultBuildExecutor extends Object implements BuildExecutor, org.apache.maven.shared.invoker.InvocationOutputHandler
Constructor and Description |
---|
DefaultBuildExecutor(org.apache.maven.shared.invoker.Invoker invoker) |
Modifier and Type | Method and Description |
---|---|
void |
consumeLine(String line) |
boolean |
executeBuild(org.apache.maven.shared.invoker.InvocationRequest request,
String logPath,
boolean verbose)
Execute Maven build and evaluate if is succeeded.
|
@Inject public DefaultBuildExecutor(org.apache.maven.shared.invoker.Invoker invoker)
public boolean executeBuild(org.apache.maven.shared.invoker.InvocationRequest request, String logPath, boolean verbose) throws org.apache.maven.shared.invoker.MavenInvocationException
BuildExecutor
executeBuild
in interface BuildExecutor
request
- invocation request to use to execute the buildlogPath
- path to log fileverbose
- print logs to standard outputtrue
iff the build succeededorg.apache.maven.shared.invoker.MavenInvocationException
- if build failed due to an internal errorpublic void consumeLine(String line)
consumeLine
in interface org.codehaus.plexus.util.cli.StreamConsumer
Copyright © 2012–2018 Red Hat, Inc.. All rights reserved.