Package io.helidon.build.devloop.mode
Class ProjectExecutor
java.lang.Object
io.helidon.build.devloop.mode.ProjectExecutor
Project executor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if project has printed toSystem.err.booleanCheck if project is running.project()Get project instance.booleanCheck if project has printed a message toSystem.errthat requires the loop to exit.voidstart()Start execution.voidstop()Stop execution.voidstop(boolean verbose) Stop execution.
-
Constructor Details
-
Method Details
-
project
Get project instance.- Returns:
- The project.
-
start
public void start()Start execution. -
stop
public void stop()Stop execution.- Throws:
IllegalStateException- If process does not stop before timeout.
-
stop
public void stop(boolean verbose) Stop execution.- Parameters:
verbose-trueif should log all state changes.- Throws:
IllegalStateException- If process does not stop before timeout.
-
isRunning
public boolean isRunning()Check if project is running.- Returns:
trueif running.
-
shouldExit
public boolean shouldExit()Check if project has printed a message toSystem.errthat requires the loop to exit.- Returns:
trueif exit is required.
-
hasStdErrMessage
public boolean hasStdErrMessage()Check if project has printed toSystem.err.- Returns:
trueif anything has been printed toSystem.err.
-