Class ClearCaseChangeLogConsumer
java.lang.Object
org.apache.maven.scm.util.AbstractConsumer
org.apache.maven.scm.provider.clearcase.command.changelog.ClearCaseChangeLogConsumer
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
Formatter used to parse Clearcase date/timestamp.private static final String
private ChangeSet
the current log entry being processed by the parserprivate ChangeFile
the current file being processed by the parserprivate static final String
private static final int
expecting commentsprivate static final int
expecting dateprivate static final int
expecting file informationprivate static final int
expecting revisionprivate static final String
private static final String
private int
current status of the parserprivate static final String
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
consumeLine
(String line) private ChangeSet
Getter for property currentChange.private ChangeFile
Getter for property currentFile.private int
Getter for property status.private void
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.private void
setCurrentChange
(ChangeSet currentChange) Setter for property currentLogEntry.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
-
CLEARCASE_TIMESTAMP_PATTERN
Formatter used to parse Clearcase date/timestamp.- See Also:
-
NAME_TAG
- See Also:
-
USER_TAG
- See Also:
-
DATE_TAG
- See Also:
-
COMMENT_TAG
- See Also:
-
REVISION_TAG
- See Also:
-
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:
-
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
-
ClearCaseChangeLogConsumer
-
-
Method Details
-
getModifications
-
consumeLine
-
processGetFile
Process the current input line in the Get File state.- Parameters:
line
- a line of text from the clearcase log output
-
processGetDate
Process the current input line in the Get Date state.- Parameters:
line
- a line of text from the clearcase log output
-
processGetCommentAndUser
Process the current input line in the Get Comment state.- Parameters:
line
- a line of text from the clearcase log output
-
processGetRevision
Process the current input line in the Get Revision.- Parameters:
line
- a line of text from the clearcase 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 currentLogEntry.- Parameters:
currentChange
- New value of property currentLogEntry.
-
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.
-