Class JJDoc.MojoLogStreamConsumer

  • All Implemented Interfaces:
    org.codehaus.plexus.util.cli.StreamConsumer
    Enclosing class:
    JJDoc

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

      Fields 
      Modifier and Type Field Description
      private boolean err
      Determines if the stream consumer is being used for System.out or System.err.
      private static java.lang.String ERROR_PREFIX
      The line prefix used by JJDoc to report errors.
      private static java.lang.String WARN_PREFIX
      The line prefix used by JJDoc to report warnings.
    • Constructor Summary

      Constructors 
      Constructor Description
      MojoLogStreamConsumer​(boolean error)
      Single param constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void consumeLine​(java.lang.String line)
      Consume a line of text.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ERROR_PREFIX

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

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

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

      • 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 Detail

      • consumeLine

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