Class SimpleExecutionResult
java.lang.Object
org.apache.maven.executor.support.SimpleExecutionResult
- All Implemented Interfaces:
ExecutorResult
Simple execution result.
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleExecutionResult(ExecutorRequest request, boolean success, Integer exitCode, String stdOut, String stdErr) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionexitCode()The exit code, if available (ie running the tool happened in a way it did produce exit code).TheExecutorRequestthis result is for.booleansuccess()The outcome of execution.
-
Constructor Details
-
SimpleExecutionResult
public SimpleExecutionResult(ExecutorRequest request, boolean success, Integer exitCode, String stdOut, String stdErr) Constructor.- Parameters:
request- the request, must not benullsuccess- the logical outcomeexitCode- the exit code, if available, ornullstdOut- the STDOUT as string, if available, ornullstdErr- the STDERR as string, if available, ornull
-
-
Method Details
-
getRequest
Description copied from interface:ExecutorResultTheExecutorRequestthis result is for.- Specified by:
getRequestin interfaceExecutorResult
-
success
public boolean success()Description copied from interface:ExecutorResultThe outcome of execution.- Specified by:
successin interfaceExecutorResult
-
exitCode
Description copied from interface:ExecutorResultThe exit code, if available (ie running the tool happened in a way it did produce exit code).- Specified by:
exitCodein interfaceExecutorResult
-
stdOutString
Description copied from interface:ExecutorResultIfExecutorRequest.grabOutputAsString()wastrue, then theStringcontaining STDOUT of tool. Nevernull, but maybe empty string. Otherwise, empty.- Specified by:
stdOutStringin interfaceExecutorResult
-
stdErrString
Description copied from interface:ExecutorResultIfExecutorRequest.grabOutputAsString()wastrue, then theStringcontaining STDERR of tool. Nevernull, but maybe empty string. Otherwise, empty.- Specified by:
stdErrStringin interfaceExecutorResult
-