Package io.helidon.build.devloop.maven
Class ForkedMavenExecutor
java.lang.Object
io.helidon.build.devloop.BuildExecutor
io.helidon.build.devloop.maven.ForkedMavenExecutor
A
BuildExecutor that forks a Maven process.-
Constructor Summary
ConstructorsConstructorDescriptionForkedMavenExecutor(Path projectDir, BuildMonitor monitor, int maxBuildWaitSeconds) Constructor. -
Method Summary
Methods inherited from class io.helidon.build.devloop.BuildExecutor
execute, monitor, projectDirectory
-
Constructor Details
-
ForkedMavenExecutor
Constructor.- Parameters:
projectDir- The project directory.monitor- The build monitor. All output is written toBuildMonitor.stdOut()andBuildMonitor.stdErr().maxBuildWaitSeconds- The maximum number of seconds to wait for a build to complete.
-
-
Method Details
-
willFork
public boolean willFork()Description copied from class:BuildExecutorReturns whether this executor will fork the maven process.- Specified by:
willForkin classBuildExecutor- Returns:
trueif will fork.
-
execute
Description copied from class:BuildExecutorExecute maven with the given arguments.- Specified by:
executein classBuildExecutor- Parameters:
args- The maven arguments.- Throws:
Exception- on error.
-