Class JazzBlameConsumer
- java.lang.Object
-
- org.apache.maven.scm.util.AbstractConsumer
-
- org.apache.maven.scm.provider.jazz.command.consumer.AbstractRepositoryConsumer
-
- org.apache.maven.scm.provider.jazz.command.blame.JazzBlameConsumer
-
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
public class JazzBlameConsumer extends AbstractRepositoryConsumer
Consume the output of the scm command for the "blame" operation.
-
-
Field Summary
Fields Modifier and Type Field Description private java.text.SimpleDateFormat
dateFormat
private java.util.List<BlameLine>
fLines
private static java.lang.String
JAZZ_TIMESTAMP_PATTERN
private static java.util.regex.Pattern
LINE_PATTERN
-
Fields inherited from class org.apache.maven.scm.provider.jazz.command.consumer.AbstractRepositoryConsumer
fed
-
-
Constructor Summary
Constructors Constructor Description JazzBlameConsumer(ScmProviderRepository repository, ScmLogger logger)
Construct the JazzBlameCommand consumer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consumeLine(java.lang.String line)
Process one line of output from the execution of the "scm annotate" command.java.util.List<BlameLine>
getLines()
-
Methods inherited from class org.apache.maven.scm.provider.jazz.command.consumer.AbstractRepositoryConsumer
getRepository, isFed, setFed, setRepository
-
Methods inherited from class org.apache.maven.scm.util.AbstractConsumer
getLogger, parseDate, parseDate, setLogger
-
-
-
-
Field Detail
-
JAZZ_TIMESTAMP_PATTERN
private static final java.lang.String JAZZ_TIMESTAMP_PATTERN
- See Also:
- Constant Field Values
-
LINE_PATTERN
private static final java.util.regex.Pattern LINE_PATTERN
-
fLines
private java.util.List<BlameLine> fLines
-
dateFormat
private java.text.SimpleDateFormat dateFormat
-
-
Constructor Detail
-
JazzBlameConsumer
public JazzBlameConsumer(ScmProviderRepository repository, ScmLogger logger)
Construct the JazzBlameCommand consumer.- Parameters:
repository
- The repository we are working with.logger
- The logger to use.
-
-
Method Detail
-
consumeLine
public void consumeLine(java.lang.String line)
Process one line of output from the execution of the "scm annotate" command.- Specified by:
consumeLine
in interfaceorg.codehaus.plexus.util.cli.StreamConsumer
- Overrides:
consumeLine
in classAbstractRepositoryConsumer
- Parameters:
line
- The line of output from the external command that has been pumped to us.- See Also:
StreamConsumer.consumeLine(java.lang.String)
-
getLines
public java.util.List<BlameLine> getLines()
-
-