Package io.helidon.build.dev
Class BuildExecutor
- java.lang.Object
-
- io.helidon.build.dev.BuildExecutor
-
- Direct Known Subclasses:
EmbeddedMavenExecutor,ForkedMavenExecutor
public abstract class BuildExecutor extends Object
An abstract build executor.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuildExecutor(Path projectDir, BuildMonitor monitor)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidexecute(String... args)Execute maven with the given arguments.voidexecute(List<String> args)Execute maven with the given arguments.BuildMonitormonitor()Returns the build monitor.PathprojectDirectory()Returns the project directory.abstract booleanwillFork()Returns whether or not this executor will fork the maven process.
-
-
-
Constructor Detail
-
BuildExecutor
protected BuildExecutor(Path projectDir, BuildMonitor monitor)
Constructor.- Parameters:
projectDir- The project directory.monitor- The build monitor. All output is written toBuildMonitor.stdOutConsumer()andBuildMonitor.stdErrConsumer().
-
-
Method Detail
-
willFork
public abstract boolean willFork()
Returns whether or not this executor will fork the maven process.- Returns:
trueif will fork.
-
execute
public abstract void execute(String... args) throws Exception
Execute maven with the given arguments.- Parameters:
args- The maven arguments.- Throws:
Exception- on error.
-
execute
public void execute(List<String> args) throws Exception
Execute maven with the given arguments.- Parameters:
args- The maven arguments.- Throws:
Exception- on error.
-
monitor
public BuildMonitor monitor()
Returns the build monitor.- Returns:
- The monitor.
-
projectDirectory
public Path projectDirectory()
Returns the project directory.- Returns:
- The directory.
-
-