Package org.apache.maven.executor
Enum ExecutorHelper.Mode
- All Implemented Interfaces:
Serializable,Comparable<ExecutorHelper.Mode>
- Enclosing interface:
ExecutorHelper
The modes of execution.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutorHelper.ModeReturns the enum constant of this type with the specified name.static ExecutorHelper.Mode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AUTO
Automatically decide. For example, presence ofExecutorRequest.environmentVariables()orExecutorRequest.jvmArguments()will result in choosingFORKEDexecutor. Otherwise,EMBEDDEDexecutor is preferred. -
EMBEDDED
Forces embedded execution. May fail ifExecutorRequestcontains input unsupported by executor. -
FORKED
Forces forked execution. Always carried out, most isolated and "most correct", but is slow as it uses child process.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-