public class JazzBlameConsumer extends AbstractRepositoryConsumer
Modifier and Type | Field and 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 |
fed
Constructor and Description |
---|
JazzBlameConsumer(ScmProviderRepository repository,
ScmLogger logger)
Construct the JazzBlameCommand consumer.
|
Modifier and Type | Method and 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() |
getRepository, isFed, setFed, setRepository
getLogger, parseDate, parseDate, setLogger
private static final java.lang.String JAZZ_TIMESTAMP_PATTERN
private static final java.util.regex.Pattern LINE_PATTERN
private java.util.List<BlameLine> fLines
private java.text.SimpleDateFormat dateFormat
public JazzBlameConsumer(ScmProviderRepository repository, ScmLogger logger)
repository
- The repository we are working with.logger
- The logger to use.public void consumeLine(java.lang.String line)
consumeLine
in interface org.codehaus.plexus.util.cli.StreamConsumer
consumeLine
in class AbstractRepositoryConsumer
line
- The line of output from the external command that has been pumped to us.StreamConsumer.consumeLine(java.lang.String)
public java.util.List<BlameLine> getLines()