Class JJDoc.MojoLogStreamConsumer

java.lang.Object
org.codehaus.mojo.javacc.JJDoc.MojoLogStreamConsumer
All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
Enclosing class:
JJDoc

class JJDoc.MojoLogStreamConsumer extends Object implements org.codehaus.plexus.util.cli.StreamConsumer
Consume and log command line output from the JJDoc process.
  • Field Details

    • ERROR_PREFIX

      private static final String ERROR_PREFIX
      The line prefix used by JJDoc to report errors.
      See Also:
    • WARN_PREFIX

      private static final String WARN_PREFIX
      The line prefix used by JJDoc to report warnings.
      See Also:
    • err

      private boolean err
      Determines if the stream consumer is being used for System.out or System.err.
  • Constructor Details

    • MojoLogStreamConsumer

      public MojoLogStreamConsumer(boolean error)
      Single param constructor.
      Parameters:
      error - If set to true, all consumed lines will be logged at the error level.
  • Method Details

    • consumeLine

      public void consumeLine(String line)
      Consume a line of text.
      Specified by:
      consumeLine in interface org.codehaus.plexus.util.cli.StreamConsumer
      Parameters:
      line - The line to consume.