Package io.helidon.build.devloop
Class BuildExecutor
java.lang.Object
io.helidon.build.devloop.BuildExecutor
- Direct Known Subclasses:
EmbeddedMavenExecutor,ForkedMavenExecutor
An abstract build executor.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuildExecutor(Path projectDir, BuildMonitor monitor) Constructor. -
Method Summary
-
Constructor Details
-
BuildExecutor
Constructor.- Parameters:
projectDir- The project directory.monitor- The build monitor. All output is written toBuildMonitor.stdOut()andBuildMonitor.stdErr().
-
-
Method Details
-
willFork
public abstract boolean willFork()Returns whether this executor will fork the maven process.- Returns:
trueif will fork.
-
execute
Execute maven with the given arguments.- Parameters:
args- The maven arguments.- Throws:
Exception- on error.
-
execute
Execute maven with the given arguments.- Parameters:
args- The maven arguments.- Throws:
Exception- on error.
-
monitor
Returns the build monitor.- Returns:
- The monitor.
-
projectDirectory
Returns the project directory.- Returns:
- The directory.
-