Class VssStatusConsumer
java.lang.Object
org.apache.maven.scm.util.AbstractConsumer
org.apache.maven.scm.provider.vss.commands.status.VssStatusConsumer
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
public class VssStatusConsumer
extends AbstractConsumer
implements org.codehaus.plexus.util.cli.StreamConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
expecting files to checkinprivate static final int
expecting setting akt local folderprivate static final int
expecting setting akt remote folderprivate static final int
expecting file informationprivate static final int
expecting commitprivate static final int
expecting update / checkoutprivate ScmFileSet
private int
private static final String
Marks Local files not in the current projectprivate String
private String
private VssScmProviderRepository
private static final String
Marks Diffing local project folderprivate static final String
Marks Diffing remote project folderprivate static final String
Marks SourceSafe files different from local filesprivate static final String
Marks SourceSafe files not in the current folder -
Constructor Summary
ConstructorsConstructorDescriptionVssStatusConsumer
(VssScmProviderRepository repo, ScmLogger logger, ScmFileSet fileSet) -
Method Summary
Modifier and TypeMethodDescriptionvoid
consumeLine
(String line) private int
getLineStatus
(String line) Identify the status of a vss get lineprivate void
processLastStateFiles
(String line) Process the current input line in the Get File state.private void
processLocalFolder
(String line) Process the current input line in the Get File Path state.private void
Process the current input line in the Get File Path state.private void
setLocalFolder
(String localFolder) private void
setRemoteProjectFolder
(String remoteProjectFolder) Methods inherited from class org.apache.maven.scm.util.AbstractConsumer
getLogger, parseDate, parseDate, setLogger
-
Field Details
-
DIFF_UNKNOWN
private static final int DIFF_UNKNOWNexpecting file information- See Also:
-
DIFF_LOCAL_FILES_NOT_IN_PROJECT
private static final int DIFF_LOCAL_FILES_NOT_IN_PROJECTexpecting files to checkin- See Also:
-
DIFF_VSS_FILES_DIFFERENT_FROM_LOCAL_FILES
private static final int DIFF_VSS_FILES_DIFFERENT_FROM_LOCAL_FILESexpecting commit- See Also:
-
DIFF_VSS_FILES_NOT_IN_CURRENT_FOLDER
private static final int DIFF_VSS_FILES_NOT_IN_CURRENT_FOLDERexpecting update / checkout- See Also:
-
DIFF_START_DIFFING_REMOTE
private static final int DIFF_START_DIFFING_REMOTEexpecting setting akt remote folder- See Also:
-
DIFF_START_DIFFING_LOCAL
private static final int DIFF_START_DIFFING_LOCALexpecting setting akt local folder- See Also:
-
START_DIFFING_REMOTE
Marks Diffing remote project folder- See Also:
-
START_DIFFING_LOCAL
Marks Diffing local project folder- See Also:
-
LOCAL_FILES_NOT_IN_PROJECT
Marks Local files not in the current project- See Also:
-
VSS_FILES_DIFFERENT_FROM_LOCAL_FILES
Marks SourceSafe files different from local files- See Also:
-
VSS_FILES_NOT_IN_CURRENT_FOLDER
Marks SourceSafe files not in the current folder- See Also:
-
remoteProjectFolder
-
localFolder
-
lastState
private int lastState -
updatedFiles
-
repo
-
fileSet
-
-
Constructor Details
-
VssStatusConsumer
-
-
Method Details
-
consumeLine
- Specified by:
consumeLine
in interfaceorg.codehaus.plexus.util.cli.StreamConsumer
-
processLastStateFiles
Process the current input line in the Get File state.- Parameters:
line
- a line of text from the VSS log output
-
processLocalFolder
Process the current input line in the Get File Path state.- Parameters:
line
- a line of text from the VSS log output
-
processRemoteProjectFolder
Process the current input line in the Get File Path state.- Parameters:
line
- a line of text from the VSS log output
-
getLineStatus
Identify the status of a vss get line- Parameters:
line
- The line to process- Returns:
- status
-
getUpdatedFiles
-
setLocalFolder
-
setRemoteProjectFolder
-