org.apache.maven.scm.provider.jazz.command.update
Class JazzUpdateConsumer

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.update.JazzUpdateConsumer
All Implemented Interfaces:
StreamConsumer

public class JazzUpdateConsumer
extends AbstractRepositoryConsumer

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

Author:
Chris Graham

Field Summary
static String UPDATE_CMD_ADD_FLAG
          The "Update" command status flag for a resource that has been added.
static 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.
static String UPDATE_CMD_DELETE_FLAG
          The "Update" command status flag for a resource that has been deleted.
static String UPDATE_CMD_MOVED_FLAG
          The "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
JazzUpdateConsumer(ScmProviderRepository repository, ScmLogger logger)
          Construct the JazzUpdateCommand consumer.
 
Method Summary
 void consumeLine(String line)
          Process one line of output from the execution of the "scm xxxx" command.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPDATE_CMD_ADD_FLAG

public static final 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 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 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 String UPDATE_CMD_MOVED_FLAG
The "Update" command status flag for a resource that has been renamed or moved.

See Also:
Constant Field Values
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(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)

getUpdatedFiles

public List<ScmFile> getUpdatedFiles()


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