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 ChangeSet
the current log entry being processed by the parserprivate ChangeFile
the current file being processed by the parserprivate static final String
Marks date dataprivate static final String
Marks end of fileprivate static final int
expecting commentsprivate static final int
expecting dateprivate static final int
expecting file informationprivate static final int
expecting revisionprivate static final String
Marks revision dataprivate static final String
Marks start of file dataprivate static final String
Marks start of revisionprivate int
current status of the parserprivate String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addEntry
(ChangeSet entry, ChangeFile file) Add a change log entry to the list (if it's not already there) with the given file.private boolean
void
consumeLine
(String line) private ChangeSet
Getter for property currentChange.private ChangeFile
Getter for property currentFile.private int
Getter for property status.private void
processGetComment
(String line) Process the current input line in the Get Comment state.private void
processGetDate
(String line) Process the current input line in the Get Date state.private void
processGetFile
(String line) Process the current input line in the Get File state.private void
processGetRevision
(String line) Process the current input line in the Get Revision state.private void
setCurrentChange
(ChangeSet currentChange) Setter for property currentChange.private void
setCurrentFile
(ChangeFile currentFile) Setter for property currentFile.private void
setStatus
(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
- aChangeSet
to 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
- aChangeFile
to 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.
-