Class AbstractRepositoryConsumer
java.lang.Object
org.apache.maven.scm.util.AbstractConsumer
org.apache.maven.scm.provider.jazz.command.consumer.AbstractRepositoryConsumer
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
- Direct Known Subclasses:
DebugLoggerConsumer
,JazzAddConsumer
,JazzBlameConsumer
,JazzCheckInConsumer
,JazzCheckOutConsumer
,JazzHistoryConsumer
,JazzListChangesetConsumer
,JazzListConsumer
,JazzStatusConsumer
,JazzUpdateConsumer
An extension of the AbstractConsumer class that also holds our Repository.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRepositoryConsumer
(ScmProviderRepository repository, ScmLogger logger) AbstractRepositoryConsumer constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
consumeLine
(String line) Process one line of output from the execution of the "scm xxxx" command.boolean
isFed()
void
setFed
(boolean fed) void
setRepository
(ScmProviderRepository repository) Methods inherited from class org.apache.maven.scm.util.AbstractConsumer
getLogger, parseDate, parseDate, setLogger
-
Field Details
-
repository
-
fed
protected boolean fed
-
-
Constructor Details
-
AbstractRepositoryConsumer
AbstractRepositoryConsumer constructor.- Parameters:
logger
- The logger to use in the consumer
-
-
Method Details
-
getRepository
- Returns:
- The repository.
-
setRepository
- Parameters:
repository
- The repository to set.
-
isFed
public boolean isFed()- Returns:
- The fed.
-
setFed
public void setFed(boolean fed) - Parameters:
fed
- The fed to set.
-
consumeLine
Process one line of output from the execution of the "scm xxxx" command.- Parameters:
line
- The line of output from the external command that has been pumped to us.- See Also:
-