Class ForkedMavenExecutor

java.lang.Object
io.helidon.build.devloop.BuildExecutor
io.helidon.build.devloop.maven.ForkedMavenExecutor

public class ForkedMavenExecutor extends BuildExecutor
A BuildExecutor that forks a Maven process.
  • Constructor Details

    • ForkedMavenExecutor

      public ForkedMavenExecutor(Path projectDir, BuildMonitor monitor, int maxBuildWaitSeconds)
      Constructor.
      Parameters:
      projectDir - The project directory.
      monitor - The build monitor. All output is written to BuildMonitor.stdOut() and BuildMonitor.stdErr().
      maxBuildWaitSeconds - The maximum number of seconds to wait for a build to complete.
  • Method Details

    • willFork

      public boolean willFork()
      Description copied from class: BuildExecutor
      Returns whether this executor will fork the maven process.
      Specified by:
      willFork in class BuildExecutor
      Returns:
      true if will fork.
    • execute

      public void execute(String... args) throws Exception
      Description copied from class: BuildExecutor
      Execute maven with the given arguments.
      Specified by:
      execute in class BuildExecutor
      Parameters:
      args - The maven arguments.
      Throws:
      Exception - on error.