Class StarteamChangeLogConsumer
java.lang.Object
org.apache.maven.scm.util.AbstractConsumer
org.apache.maven.scm.provider.starteam.command.changelog.StarteamChangeLogConsumer
- All Implemented Interfaces:
org.codehaus.plexus.util.cli.StreamConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
Marks author dataprivate ChangeSet
the current log entry being processed by the parserprivate String
private ChangeFile
the current file being processed by the parserprivate static final String
Marks date dataprivate static final String
Marks current directory dataprivate static final String
Marks end of fileprivate Date
the to dateprivate static final int
expecting dateprivate static final int
expecting commentsprivate static final int
expecting file informationprivate static final int
expecting revisionprivate SimpleDateFormat
private static final String
Marks revision dataprivate static final String
Marks start of file dataprivate static final String
Marks start of revisionprivate Date
the before dateprivate int
current status of the parserprivate String
private 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.void
consumeLine
(String line) private ChangeSet
Getter for property currentChange.private ChangeFile
Getter for property currentFile.private int
Getter for property status.private void
processDirectory
(String line, int pos) private void
processGetAuthor
(String line) Process the current input line in the Get Author/Date state.private void
processGetComment
(String line) Process the current input line in the Get Comment 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
-
localFormat
-
entries
-
workingDirectory
-
currentDir
-
GET_FILE
private static final int GET_FILEexpecting file 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:
-
DIR_MARKER
Marks current directory data- 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:
-
AUTHOR_TAG
Marks author 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 -
startDate
the before date -
endDate
the to date -
userDateFormat
-
-
Constructor Details
-
StarteamChangeLogConsumer
-
-
Method Details
-
getModifications
-
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
-
processDirectory
-
processGetFile
Process the current input line in the Get File state.- Parameters:
line
- a line of text from the Starteam log output
-
processGetRevision
Process the current input line in the Get Revision state.- Parameters:
line
- a line of text from the Starteam log output
-
processGetAuthor
Process the current input line in the Get Author/Date state.- Parameters:
line
- a line of text from the Starteam log output
-
processGetComment
Process the current input line in the Get Comment state.- Parameters:
line
- a line of text from the Starteam 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.
-