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
public class JazzUpdateConsumer extends AbstractRepositoryConsumer
Consume the output of the scm command for the "acept" operation.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ScmFile>fUpdatedFilesstatic java.lang.StringUPDATE_CMD_ADD_FLAGThe "Update" command status flag for a resource that has been added.static java.lang.StringUPDATE_CMD_CHANGE_FLAGThe "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 java.lang.StringUPDATE_CMD_DELETE_FLAGThe "Update" command status flag for a resource that has been deleted.static java.lang.StringUPDATE_CMD_MOVED_FLAGThe "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
Constructors Constructor Description JazzUpdateConsumer(ScmProviderRepository repository, ScmLogger logger)Construct the JazzUpdateCommand consumer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsumeLine(java.lang.String line)Process one line of output from the execution of the "scm xxxx" command.private booleancontainsStatusFlag(java.lang.String line)private voidextractUpdatedFile(java.lang.String line)java.util.List<ScmFile>getUpdatedFiles()-
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
-
-
-
-
Field Detail
-
UPDATE_CMD_ADD_FLAG
public static final java.lang.String UPDATE_CMD_ADD_FLAG
The "Update" command status flag for a resource that has been added.- See Also:
- Constant Field Values
-
UPDATE_CMD_CHANGE_FLAG
public static final java.lang.String 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:
- Constant Field Values
-
UPDATE_CMD_DELETE_FLAG
public static final java.lang.String UPDATE_CMD_DELETE_FLAG
The "Update" command status flag for a resource that has been deleted.- See Also:
- Constant Field Values
-
UPDATE_CMD_MOVED_FLAG
public static final java.lang.String UPDATE_CMD_MOVED_FLAG
The "Update" command status flag for a resource that has been renamed or moved.- See Also:
- Constant Field Values
-
fUpdatedFiles
private java.util.List<ScmFile> fUpdatedFiles
-
-
Constructor Detail
-
JazzUpdateConsumer
public JazzUpdateConsumer(ScmProviderRepository repository, ScmLogger logger)
Construct the JazzUpdateCommand consumer.- Parameters:
repository- The repository we are working with.logger- The logger to use.
-
-
Method Detail
-
consumeLine
public void consumeLine(java.lang.String line)
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:
StreamConsumer.consumeLine(java.lang.String)
-
containsStatusFlag
private boolean containsStatusFlag(java.lang.String line)
-
extractUpdatedFile
private void extractUpdatedFile(java.lang.String line)
-
getUpdatedFiles
public java.util.List<ScmFile> getUpdatedFiles()
-
-