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 Summary
Fields Modifier and Type Field Description private static java.lang.StringCONTAINS_SET_DEFAULT_WORKING_FOLDERMarks "Set the default folder for project" questionprivate static intCURRENTLY_CHECKED_OUT_FILEexpecting file informationprivate java.lang.StringcurrentPathprivate static intGET_FILEexpecting file informationprivate static intGET_FILE_PATHexpecting file path informationprivate static intGET_UNKNOWNexpecting file informationprivate static intIS_WRITABLE_COPYexpecting writable copyprivate VssScmProviderRepositoryrepoprivate static intSET_WORKING_FOLDERexpecting working folderprivate static java.lang.StringSTART_CURRENTLY_CHECKED_OUTMarks replacing a old Fileprivate static java.lang.StringSTART_FILE_PATHMarks start of file dataprivate static java.lang.StringSTART_GETTINGMarks getting a new Fileprivate static java.lang.StringSTART_WRITABLE_COPYMarks a writable copy of a File / maybe a conflictprivate java.util.List<ScmFile>updatedFiles
-
Constructor Summary
Constructors Constructor Description VssEditConsumer(VssScmProviderRepository repo, ScmLogger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsumeLine(java.lang.String line)private intgetLineStatus(java.lang.String line)Identify the status of a vss get linejava.util.List<ScmFile>getUpdatedFiles()private voidprocessGetFile(java.lang.String line)Process the current input line in the Get File state.private voidprocessGetFilePath(java.lang.String line)Process the current input line in the Get File Path state.private voidprocessReplaceFile(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
-
CURRENTLY_CHECKED_OUT_FILE
private static final int CURRENTLY_CHECKED_OUT_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_CURRENTLY_CHECKED_OUT
private static final java.lang.String START_CURRENTLY_CHECKED_OUT
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
-
VssEditConsumer
public VssEditConsumer(VssScmProviderRepository repo, ScmLogger logger)
-
-
Method Detail
-
consumeLine
public void consumeLine(java.lang.String line)
- Specified by:
consumeLinein 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()
-
-