Class 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 Details

    • 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:
    • 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:
    • 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:
    • 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:
    • fUpdatedFiles

      private List<ScmFile> fUpdatedFiles
  • Constructor Details

    • 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 Details

    • consumeLine

      public void consumeLine(String line)
      Process one line of output from the execution of the "scm xxxx" command.
      Specified by:
      consumeLine in interface org.codehaus.plexus.util.cli.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)
    • containsStatusFlag

      private boolean containsStatusFlag(String line)
    • extractUpdatedFile

      private void extractUpdatedFile(String line)
    • getUpdatedFiles

      public List<ScmFile> getUpdatedFiles()