Class CvsChangeLogConsumer
java.lang.Object
org.apache.maven.scm.util.AbstractConsumer
org.apache.maven.scm.provider.cvslib.command.changelog.CvsChangeLogConsumer
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ChangeSetthe current log entry being processed by the parserprivate ChangeFilethe current file being processed by the parserprivate static final StringMarks date dataprivate static final StringMarks end of fileprivate static final intexpecting commentsprivate static final intexpecting dateprivate static final intexpecting file informationprivate static final intexpecting revisionprivate static final StringMarks revision dataprivate static final StringMarks start of file dataprivate static final StringMarks start of revisionprivate intcurrent status of the parserprivate String -
Constructor Summary
Constructors -
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.private booleanvoidconsumeLine(String line) private ChangeSetGetter for property currentChange.private ChangeFileGetter for property currentFile.private intGetter for property status.private voidprocessGetComment(String line) Process the current input line in the Get Comment state.private voidprocessGetDate(String line) Process the current input line in the Get Date state.private voidprocessGetFile(String line) Process the current input line in the Get File state.private voidprocessGetRevision(String line) Process the current input line in the Get Revision state.private voidsetCurrentChange(ChangeSet currentChange) Setter for property currentChange.private voidsetCurrentFile(ChangeFile currentFile) Setter for property currentFile.private voidsetStatus(int status) Setter for property status.Methods inherited from class org.apache.maven.scm.util.AbstractConsumer
getLogger, parseDate, parseDate, setLogger
-
Field Details
-
entries
-
GET_FILE
private static final int GET_FILEexpecting file information- See Also:
-
GET_DATE
private static final int GET_DATEexpecting 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:
-
START_FILE
Marks start of file data- See Also:
-
END_FILE
Marks end of file- See Also:
-
START_REVISION
Marks start of revision- See Also:
-
REVISION_TAG
Marks revision data- See Also:
-
DATE_TAG
Marks date data- See Also:
-
status
private int statuscurrent status of the parser -
currentChange
the current log entry being processed by the parser -
currentFile
the current file being processed by the parser -
userDatePattern
-
-
Constructor Details
-
CvsChangeLogConsumer
-
-
Method Details
-
getModifications
-
areEqual
-
consumeLine
-
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
-
processGetFile
Process the current input line in the Get File state.- Parameters:
line- a line of text from the cvs log output
-
processGetRevision
Process the current input line in the Get Revision state.- Parameters:
line- a line of text from the cvs log output
-
processGetDate
Process the current input line in the Get Date state.- Parameters:
line- a line of text from the cvs log output
-
processGetComment
Process the current input line in the Get Comment state.- Parameters:
line- a line of text from the cvs log output
-
getCurrentFile
Getter for property currentFile.- Returns:
- Value of property currentFile.
-
setCurrentFile
Setter for property currentFile.- Parameters:
currentFile- New value of property currentFile.
-
getCurrentChange
Getter for property currentChange.- Returns:
- Value of property currentChange.
-
setCurrentChange
Setter for property currentChange.- Parameters:
currentChange- New value of property currentChange.
-
getStatus
private int getStatus()Getter for property status.- Returns:
- Value of property status.
-
setStatus
private void setStatus(int status) Setter for property status.- Parameters:
status- New value of property status.
-