Class JazzListChangesetConsumer
- 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.changelog.JazzListChangesetConsumer
-
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
public class JazzListChangesetConsumer extends AbstractRepositoryConsumer
Consume the output of the scm command for the "list changesets" operation. This parses the contents of the output and uses it to fill in the remaining information in theentries
list.- Author:
- Chris Graham
-
-
Field Summary
-
Fields inherited from class org.apache.maven.scm.provider.jazz.command.consumer.AbstractRepositoryConsumer
fed
-
-
Constructor Summary
Constructors Constructor Description JazzListChangesetConsumer(ScmProviderRepository repo, ScmLogger logger, List<ChangeSet> entries, String userDateFormat)
Constructor for our "scm list changeset" consumer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consumeLine(String line)
Process one line of output from the execution of the "scm list changeset" command.protected String
stripDelimiters(String text)
String the leading/trailing ", < and > from the text.-
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
-
-
-
-
Constructor Detail
-
JazzListChangesetConsumer
public JazzListChangesetConsumer(ScmProviderRepository repo, ScmLogger logger, List<ChangeSet> entries, String userDateFormat)
Constructor for our "scm list changeset" 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 list changeset" 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)
-
-