Class VssCheckOutConsumer
- java.lang.Object
-
- org.apache.maven.scm.util.AbstractConsumer
-
- org.apache.maven.scm.provider.vss.commands.checkout.VssCheckOutConsumer
-
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
public class VssCheckOutConsumer extends AbstractConsumer implements org.codehaus.plexus.util.cli.StreamConsumer
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
CONTAINS_SET_DEFAULT_WORKING_FOLDER
Marks "Set the default folder for project" questionprivate java.lang.String
currentPath
private static int
GET_FILE
expecting file informationprivate static int
GET_FILE_PATH
expecting file path informationprivate static int
GET_UNKNOWN
expecting file informationprivate static int
IS_WRITABLE_COPY
expecting writable copyprivate static int
REPLACE_FILE
expecting file informationprivate VssScmProviderRepository
repo
private static int
SET_WORKING_FOLDER
expecting working folderprivate static java.lang.String
START_FILE_PATH
Marks start of file dataprivate static java.lang.String
START_GETTING
Marks getting a new Fileprivate static java.lang.String
START_REPLACING
Marks replacing a old Fileprivate static java.lang.String
START_WRITABLE_COPY
Marks a writable copy of a File / maybe a conflictprivate java.util.List<ScmFile>
updatedFiles
-
Constructor Summary
Constructors Constructor Description VssCheckOutConsumer(VssScmProviderRepository repo, ScmLogger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consumeLine(java.lang.String line)
private int
getLineStatus(java.lang.String line)
Identify the status of a vss get linejava.util.List<ScmFile>
getUpdatedFiles()
private void
processGetFile(java.lang.String line)
Process the current input line in the Get File state.private void
processGetFilePath(java.lang.String line)
Process the current input line in the Get File Path state.private void
processReplaceFile(java.lang.String line)
Process the current input line in the Replace File state.-
Methods inherited from class org.apache.maven.scm.util.AbstractConsumer
getLogger, parseDate, parseDate, setLogger
-
-
-
-
Field Detail
-
GET_UNKNOWN
private static final int GET_UNKNOWN
expecting file information- See Also:
- Constant Field Values
-
GET_FILE
private static final int GET_FILE
expecting file information- See Also:
- Constant Field Values
-
REPLACE_FILE
private static final int REPLACE_FILE
expecting file information- See Also:
- Constant Field Values
-
GET_FILE_PATH
private static final int GET_FILE_PATH
expecting file path information- See Also:
- Constant Field Values
-
IS_WRITABLE_COPY
private static final int IS_WRITABLE_COPY
expecting writable copy- See Also:
- Constant Field Values
-
SET_WORKING_FOLDER
private static final int SET_WORKING_FOLDER
expecting working folder- See Also:
- Constant Field Values
-
START_FILE_PATH
private static final java.lang.String START_FILE_PATH
Marks start of file data- See Also:
- Constant Field Values
-
START_GETTING
private static final java.lang.String START_GETTING
Marks getting a new File- See Also:
- Constant Field Values
-
START_REPLACING
private static final java.lang.String START_REPLACING
Marks replacing a old File- See Also:
- Constant Field Values
-
START_WRITABLE_COPY
private static final java.lang.String START_WRITABLE_COPY
Marks a writable copy of a File / maybe a conflict- See Also:
- Constant Field Values
-
CONTAINS_SET_DEFAULT_WORKING_FOLDER
private static final java.lang.String CONTAINS_SET_DEFAULT_WORKING_FOLDER
Marks "Set the default folder for project" question- See Also:
- Constant Field Values
-
currentPath
private java.lang.String currentPath
-
updatedFiles
private java.util.List<ScmFile> updatedFiles
-
repo
private VssScmProviderRepository repo
-
-
Constructor Detail
-
VssCheckOutConsumer
public VssCheckOutConsumer(VssScmProviderRepository repo, ScmLogger logger)
-
-
Method Detail
-
consumeLine
public void consumeLine(java.lang.String line)
- Specified by:
consumeLine
in interfaceorg.codehaus.plexus.util.cli.StreamConsumer
-
processGetFile
private void processGetFile(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
-
processReplaceFile
private void processReplaceFile(java.lang.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(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()
-
-