Class VssChangeLogConsumer
java.lang.Object
org.apache.maven.scm.util.AbstractConsumer
org.apache.maven.scm.provider.vss.commands.changelog.VssChangeLogConsumer
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChangeSetprivate ChangeFilercs entries, in reverse (date, time, author, comment) orderprivate static final SimpleDateFormatCustom date/time formatter.private static final intexpecting dateprivate static final intexpecting commentsprivate static final intexpecting file informationprivate static final intexpecting file path informationprivate static final intexpecting revisionprivate static final intunknown vss history line statusprivate intlast status of the parserprivate VssScmProviderRepositoryprivate static final StringMarks author dataprivate static final StringMarks comment dataprivate static final StringMarks start of file dataprivate static final StringMarks start of file dataprivate static final StringMarks start of revisionprivate String -
Constructor Summary
ConstructorsConstructorDescriptionVssChangeLogConsumer(VssScmProviderRepository repo, String userDatePattern, ScmLogger logger) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddEntry(ChangeSet entry, ChangeFile file) Add a change log entry to the list (if it's not already there) with the given file.voidconsumeLine(String line) private intgetLineStatus(String line) Identify the status of a vss history lineprivate voidprocessGetAuthor(String line) Process the current input line in the Get Author state.private voidprocessGetComment(String line) Process the current input line in the Get Comment state.private voidprocessGetFile(String line) Process the current input line in the Get File state.private voidprocessGetFilePath(String line) Process the current input line in the Get File Path state.private voidprocessGetRevision(String line) Process the current input line in the Get Revision state.Methods inherited from class org.apache.maven.scm.util.AbstractConsumer
getLogger, parseDate, parseDate, setLogger
-
Field Details
-
ENTRY_KEY_TIMESTAMP_FORMAT
Custom date/time formatter. Rounds ChangeLogEntry times to the nearest minute. -
GET_FILE
private static final int GET_FILEexpecting file information- See Also:
-
GET_FILE_PATH
private static final int GET_FILE_PATHexpecting file path information- See Also:
-
GET_AUTHOR
private static final int GET_AUTHORexpecting date- See Also:
-
GET_COMMENT
private static final int GET_COMMENTexpecting comments- See Also:
-
GET_REVISION
private static final int GET_REVISIONexpecting revision- See Also:
-
GET_UNKNOWN
private static final int GET_UNKNOWNunknown vss history line status- See Also:
-
START_FILE
Marks start of file data- See Also:
-
START_FILE_PATH
Marks start of file data- See Also:
-
START_REVISION
Marks start of revision- See Also:
-
START_AUTHOR
Marks author data- See Also:
-
START_COMMENT
Marks comment data- See Also:
-
entries
rcs entries, in reverse (date, time, author, comment) order -
currentFile
-
currentChangeSet
-
lastStatus
private int lastStatuslast status of the parser -
repo
-
userDatePattern
-
-
Constructor Details
-
VssChangeLogConsumer
public VssChangeLogConsumer(VssScmProviderRepository repo, String userDatePattern, ScmLogger logger)
-
-
Method Details
-
getModifications
-
consumeLine
-
processGetComment
Process the current input line in the Get Comment state.- Parameters:
line- a line of text from the VSS log output
-
processGetAuthor
Process the current input line in the Get Author state.- Parameters:
line- a line of text from the VSS log output
-
processGetFile
Process the current input line in the Get File state.- Parameters:
line- a line of text from the VSS log output
-
processGetFilePath
Process the current input line in the Get File Path state.- Parameters:
line- a line of text from the VSS log output
-
processGetRevision
Process the current input line in the Get Revision state.- Parameters:
line- a line of text from the VSS log output
-
getLineStatus
Identify the status of a vss history line- Parameters:
line- The line to process- Returns:
- status
-
addEntry
Add a change log entry to the list (if it's not already there) with the given file.- Parameters:
entry- aChangeSetto be added to the list if another with the same key doesn't exist already. If the entry's author is null, the entry wont be addedfile- aChangeFileto be added to the entry
-