Class InvocationResultWithOutput.PerGoalOutputHandler

java.lang.Object
io.micronaut.maven.InvocationResultWithOutput.PerGoalOutputHandler
All Implemented Interfaces:
org.apache.maven.shared.invoker.InvocationOutputHandler, org.apache.maven.shared.utils.cli.StreamConsumer
Enclosing class:
InvocationResultWithOutput

public static class InvocationResultWithOutput.PerGoalOutputHandler extends Object implements org.apache.maven.shared.invoker.InvocationOutputHandler
An InvocationOutputHandler that can provide the output of each goals separately.
  • Constructor Details

  • Method Details

    • consumeLine

      public void consumeLine(String line)
      Specified by:
      consumeLine in interface org.apache.maven.shared.utils.cli.StreamConsumer
    • getOutput

      public List<String> getOutput(String pluginGoalKey)
      Parameters:
      pluginGoalKey - plugin/goal formatted as pluginId:goal, e.g.: compiler:compile
      Returns:
      the output of the given plugin goal key, with log level prefixes and build summary stripped out.
    • getOutput

      public List<String> getOutput()
      Returns:
      the complete output, without log prefixes or trailing summary lines.