Class VssStatusConsumer

  • All Implemented Interfaces:
    org.codehaus.plexus.util.cli.StreamConsumer

    public class VssStatusConsumer
    extends AbstractConsumer
    implements org.codehaus.plexus.util.cli.StreamConsumer
    • Field Detail

      • DIFF_UNKNOWN

        private static final int DIFF_UNKNOWN
        expecting file information
        See Also:
        Constant Field Values
      • DIFF_LOCAL_FILES_NOT_IN_PROJECT

        private static final int DIFF_LOCAL_FILES_NOT_IN_PROJECT
        expecting files to checkin
        See Also:
        Constant Field Values
      • DIFF_VSS_FILES_DIFFERENT_FROM_LOCAL_FILES

        private static final int DIFF_VSS_FILES_DIFFERENT_FROM_LOCAL_FILES
        expecting commit
        See Also:
        Constant Field Values
      • DIFF_VSS_FILES_NOT_IN_CURRENT_FOLDER

        private static final int DIFF_VSS_FILES_NOT_IN_CURRENT_FOLDER
        expecting update / checkout
        See Also:
        Constant Field Values
      • DIFF_START_DIFFING_REMOTE

        private static final int DIFF_START_DIFFING_REMOTE
        expecting setting akt remote folder
        See Also:
        Constant Field Values
      • DIFF_START_DIFFING_LOCAL

        private static final int DIFF_START_DIFFING_LOCAL
        expecting setting akt local folder
        See Also:
        Constant Field Values
      • START_DIFFING_REMOTE

        private static final java.lang.String START_DIFFING_REMOTE
        Marks Diffing remote project folder
        See Also:
        Constant Field Values
      • START_DIFFING_LOCAL

        private static final java.lang.String START_DIFFING_LOCAL
        Marks Diffing local project folder
        See Also:
        Constant Field Values
      • LOCAL_FILES_NOT_IN_PROJECT

        private static final java.lang.String LOCAL_FILES_NOT_IN_PROJECT
        Marks Local files not in the current project
        See Also:
        Constant Field Values
      • VSS_FILES_DIFFERENT_FROM_LOCAL_FILES

        private static final java.lang.String VSS_FILES_DIFFERENT_FROM_LOCAL_FILES
        Marks SourceSafe files different from local files
        See Also:
        Constant Field Values
      • VSS_FILES_NOT_IN_CURRENT_FOLDER

        private static final java.lang.String VSS_FILES_NOT_IN_CURRENT_FOLDER
        Marks SourceSafe files not in the current folder
        See Also:
        Constant Field Values
      • remoteProjectFolder

        private java.lang.String remoteProjectFolder
      • localFolder

        private java.lang.String localFolder
      • lastState

        private int lastState
      • updatedFiles

        private java.util.List<ScmFile> updatedFiles
    • Method Detail

      • consumeLine

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

        private void processLastStateFiles​(java.lang.String line)
        Process the current input line in the Get File state.
        Parameters:
        line - a line of text from the VSS log output
      • processLocalFolder

        private void processLocalFolder​(java.lang.String line)
        Process the current input line in the Get File Path state.
        Parameters:
        line - a line of text from the VSS log output
      • processRemoteProjectFolder

        private void processRemoteProjectFolder​(java.lang.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​(java.lang.String line)
        Identify the status of a vss get line
        Parameters:
        line - The line to process
        Returns:
        status
      • getUpdatedFiles

        public java.util.List<ScmFile> getUpdatedFiles()
      • setLocalFolder

        private void setLocalFolder​(java.lang.String localFolder)
      • setRemoteProjectFolder

        private void setRemoteProjectFolder​(java.lang.String remoteProjectFolder)