Class VssEditConsumer

java.lang.Object
org.apache.maven.scm.util.AbstractConsumer
org.apache.maven.scm.provider.vss.commands.edit.VssEditConsumer
All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer

public class VssEditConsumer extends AbstractConsumer implements org.codehaus.plexus.util.cli.StreamConsumer
  • Field Details

    • GET_UNKNOWN

      private static final int GET_UNKNOWN
      expecting file information
      See Also:
    • GET_FILE

      private static final int GET_FILE
      expecting file information
      See Also:
    • CURRENTLY_CHECKED_OUT_FILE

      private static final int CURRENTLY_CHECKED_OUT_FILE
      expecting file information
      See Also:
    • GET_FILE_PATH

      private static final int GET_FILE_PATH
      expecting file path information
      See Also:
    • IS_WRITABLE_COPY

      private static final int IS_WRITABLE_COPY
      expecting writable copy
      See Also:
    • SET_WORKING_FOLDER

      private static final int SET_WORKING_FOLDER
      expecting working folder
      See Also:
    • START_FILE_PATH

      private static final String START_FILE_PATH
      Marks start of file data
      See Also:
    • START_GETTING

      private static final String START_GETTING
      Marks getting a new File
      See Also:
    • START_CURRENTLY_CHECKED_OUT

      private static final String START_CURRENTLY_CHECKED_OUT
      Marks replacing a old File
      See Also:
    • START_WRITABLE_COPY

      private static final String START_WRITABLE_COPY
      Marks a writable copy of a File / maybe a conflict
      See Also:
    • CONTAINS_SET_DEFAULT_WORKING_FOLDER

      private static final String CONTAINS_SET_DEFAULT_WORKING_FOLDER
      Marks "Set the default folder for project" question
      See Also:
    • currentPath

      private String currentPath
    • updatedFiles

      private List<ScmFile> updatedFiles
    • repo

  • Constructor Details

  • Method Details

    • consumeLine

      public void consumeLine(String line)
      Specified by:
      consumeLine in interface org.codehaus.plexus.util.cli.StreamConsumer
    • processGetFile

      private void processGetFile(String line)
      Process the current input line in the Get File state.
      Parameters:
      line - a line of text from the VSS log output
    • processReplaceFile

      private void processReplaceFile(String line)
      Process the current input line in the Replace File state.
      Parameters:
      line - a line of text from the VSS log output
    • processGetFilePath

      private void processGetFilePath(String line)
      Process the current input line in the Get File Path state.
      Parameters:
      line - a line of text from the VSS log output
    • getLineStatus

      private int getLineStatus(String line)
      Identify the status of a vss get line
      Parameters:
      line - The line to process
      Returns:
      status
    • getUpdatedFiles

      public List<ScmFile> getUpdatedFiles()