Package io.helidon.build.dev.maven
Class ForkedMavenExecutor
- java.lang.Object
-
- io.helidon.build.dev.BuildExecutor
-
- io.helidon.build.dev.maven.ForkedMavenExecutor
-
public class ForkedMavenExecutor extends BuildExecutor
ABuildExecutorthat forks a Maven process.
-
-
Constructor Summary
Constructors Constructor Description ForkedMavenExecutor(Path projectDir, BuildMonitor monitor, int maxBuildWaitSeconds)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(String... args)Execute maven with the given arguments.booleanwillFork()Returns whether or not this executor will fork the maven process.-
Methods inherited from class io.helidon.build.dev.BuildExecutor
execute, monitor, projectDirectory
-
-
-
-
Constructor Detail
-
ForkedMavenExecutor
public ForkedMavenExecutor(Path projectDir, BuildMonitor monitor, int maxBuildWaitSeconds)
Constructor.- Parameters:
projectDir- The project directory.monitor- The build monitor. All output is written toBuildMonitor.stdOutConsumer()andBuildMonitor.stdErrConsumer().maxBuildWaitSeconds- The maximum number of seconds to wait for a build to complete.
-
-
Method Detail
-
willFork
public boolean willFork()
Description copied from class:BuildExecutorReturns whether or not this executor will fork the maven process.- Specified by:
willForkin classBuildExecutor- Returns:
trueif will fork.
-
execute
public void execute(String... args) throws Exception
Description copied from class:BuildExecutorExecute maven with the given arguments.- Specified by:
executein classBuildExecutor- Parameters:
args- The maven arguments.- Throws:
Exception- on error.
-
-