Package org.codehaus.mojo.javacc
Class JTB.MojoLogStreamConsumer
java.lang.Object
org.codehaus.mojo.javacc.JTB.MojoLogStreamConsumer
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
- Enclosing class:
JTB
class JTB.MojoLogStreamConsumer
extends Object
implements org.codehaus.plexus.util.cli.StreamConsumer
Consume and log command line output from the JJDoc process.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
Determines if the stream consumer is being used forSystem.out
orSystem.err
.private static final String
The line prefix used by JTB to report infos. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INFO_PREFIX
The line prefix used by JTB to report infos.- See Also:
-
err
private final boolean errDetermines if the stream consumer is being used forSystem.out
orSystem.err
.
-
-
Constructor Details
-
MojoLogStreamConsumer
public MojoLogStreamConsumer(boolean error) Single param constructor.- Parameters:
error
- If set totrue
, all consumed lines will be logged at the error level.
-
-
Method Details
-
consumeLine
Consume a line of text.- Specified by:
consumeLine
in interfaceorg.codehaus.plexus.util.cli.StreamConsumer
- Parameters:
line
- The line to consume.
-