Package io.micronaut.maven
Record Class InvocationResultWithOutput
java.lang.Object
java.lang.Record
io.micronaut.maven.InvocationResultWithOutput
- Record Components:
- result- the invocation result.
- outputHandler- the output handler.
- All Implemented Interfaces:
- org.apache.maven.shared.invoker.InvocationResult
public record InvocationResultWithOutput(org.apache.maven.shared.invoker.InvocationResult result, InvocationResultWithOutput.PerGoalOutputHandler outputHandler)
extends Record
implements org.apache.maven.shared.invoker.InvocationResult
An 
InvocationResult that includes the output and error. This allows callers to conditionally display the
 output depending on the exit code.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classAnInvocationOutputHandlerthat can provide the output of each goals separately.
- 
Constructor SummaryConstructorsConstructorDescriptionInvocationResultWithOutput(org.apache.maven.shared.invoker.InvocationResult result, InvocationResultWithOutput.PerGoalOutputHandler outputHandler) Creates an instance of aInvocationResultWithOutputrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.org.apache.maven.shared.utils.cli.CommandLineExceptionintfinal inthashCode()Returns a hash code value for this object.Returns the value of theoutputHandlerrecord component.org.apache.maven.shared.invoker.InvocationResultresult()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details
- 
Method Details- 
getExecutionException- Specified by:
- getExecutionExceptionin interface- org.apache.maven.shared.invoker.InvocationResult
 
- 
getExitCode- Specified by:
- getExitCodein interface- org.apache.maven.shared.invoker.InvocationResult
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodeReturns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
resultReturns the value of theresultrecord component.- Returns:
- the value of the resultrecord component
 
- 
outputHandlerReturns the value of theoutputHandlerrecord component.- Returns:
- the value of the outputHandlerrecord component
 
 
-