org.apache.maven.scm.provider.jazz.command.changelog
Class JazzHistoryConsumer

java.lang.Object
  extended by org.apache.maven.scm.util.AbstractConsumer
      extended by org.apache.maven.scm.provider.jazz.command.consumer.AbstractRepositoryConsumer
          extended by org.apache.maven.scm.provider.jazz.command.changelog.JazzHistoryConsumer
All Implemented Interfaces:
StreamConsumer

public class JazzHistoryConsumer
extends AbstractRepositoryConsumer

Consume the output of the scm command for the "history" operation.

It is passed in a List of ChangeSet entries. All we do is to parse the Jazz change set aliases, and save as the revision into the list.

NOTE: We do not set the command or date or anything other than the revision here, as we pick that information up from the "scm list changeset" command.

Author:
Chris Graham

Field Summary
 
Fields inherited from class org.apache.maven.scm.provider.jazz.command.consumer.AbstractRepositoryConsumer
fed
 
Constructor Summary
JazzHistoryConsumer(ScmProviderRepository repo, ScmLogger logger, List<ChangeSet> entries)
          Constructor for our "scm history" consumer.
 
Method Summary
 void consumeLine(String line)
          Process one line of output from the execution of the "scm xxxx" command.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JazzHistoryConsumer

public JazzHistoryConsumer(ScmProviderRepository repo,
                           ScmLogger logger,
                           List<ChangeSet> entries)
Constructor for our "scm history" consumer.

Parameters:
repo - The JazzScmProviderRepository being used.
logger - The ScmLogger to use.
entries - The List of ChangeSet entries that we will populate.
Method Detail

consumeLine

public void consumeLine(String line)
Process one line of output from the execution of the "scm xxxx" command.

Specified by:
consumeLine in interface StreamConsumer
Overrides:
consumeLine in class AbstractRepositoryConsumer
Parameters:
line - The line of output from the external command that has been pumped to us.
See Also:
StreamConsumer.consumeLine(java.lang.String)


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.