Class BuildExecutor

java.lang.Object
io.helidon.build.devloop.BuildExecutor
Direct Known Subclasses:
EmbeddedMavenExecutor, ForkedMavenExecutor

public abstract class BuildExecutor extends Object
An abstract build executor.
  • Constructor Details

  • Method Details

    • willFork

      public abstract boolean willFork()
      Returns whether this executor will fork the maven process.
      Returns:
      true if 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.