Class JazzUpdateConsumer
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.update.JazzUpdateConsumer
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
Consume the output of the scm command for the "acept" operation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe "Update" command status flag for a resource that has been added.static final StringThe "Update" command status flag for when the content or properties of a file have been modified, or the properties of a directory have changed.static final StringThe "Update" command status flag for a resource that has been deleted.static final StringThe "Update" command status flag for a resource that has been renamed or moved.Fields inherited from class org.apache.maven.scm.provider.jazz.command.consumer.AbstractRepositoryConsumer
fed -
Constructor Summary
ConstructorsConstructorDescriptionJazzUpdateConsumer(ScmProviderRepository repository, ScmLogger logger) Construct the JazzUpdateCommand consumer. -
Method Summary
Modifier and TypeMethodDescriptionvoidconsumeLine(String line) Process one line of output from the execution of the "scm xxxx" command.private booleancontainsStatusFlag(String line) private voidextractUpdatedFile(String line) Methods inherited from class org.apache.maven.scm.provider.jazz.command.consumer.AbstractRepositoryConsumer
getRepository, isFed, setFed, setRepositoryMethods inherited from class org.apache.maven.scm.util.AbstractConsumer
getLogger, parseDate, parseDate, setLogger
-
Field Details
-
UPDATE_CMD_ADD_FLAG
The "Update" command status flag for a resource that has been added.- See Also:
-
UPDATE_CMD_CHANGE_FLAG
The "Update" command status flag for when the content or properties of a file have been modified, or the properties of a directory have changed.- See Also:
-
UPDATE_CMD_DELETE_FLAG
The "Update" command status flag for a resource that has been deleted.- See Also:
-
UPDATE_CMD_MOVED_FLAG
The "Update" command status flag for a resource that has been renamed or moved.- See Also:
-
fUpdatedFiles
-
-
Constructor Details
-
JazzUpdateConsumer
Construct the JazzUpdateCommand consumer.- Parameters:
repository- The repository we are working with.logger- The logger to use.
-
-
Method Details
-
consumeLine
Process one line of output from the execution of the "scm xxxx" command.- Specified by:
consumeLinein interfaceorg.codehaus.plexus.util.cli.StreamConsumer- Overrides:
consumeLinein classAbstractRepositoryConsumer- Parameters:
line- The line of output from the external command that has been pumped to us.- See Also:
-
containsStatusFlag
-
extractUpdatedFile
-
getUpdatedFiles
-