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 StringMarks author dataprivate ChangeSetthe current log entry being processed by the parserprivate Stringprivate ChangeFilethe current file being processed by the parserprivate static final StringMarks date dataprivate static final StringMarks current directory dataprivate static final StringMarks end of fileprivate Datethe to dateprivate static final intexpecting dateprivate static final intexpecting commentsprivate static final intexpecting file informationprivate static final intexpecting revisionprivate SimpleDateFormatprivate static final StringMarks revision dataprivate static final StringMarks start of file dataprivate static final StringMarks start of revisionprivate Datethe before dateprivate intcurrent status of the parserprivate Stringprivate 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.voidconsumeLine(String line) private ChangeSetGetter for property currentChange.private ChangeFileGetter for property currentFile.private intGetter for property status.private voidprocessDirectory(String line, int pos) private voidprocessGetAuthor(String line) Process the current input line in the Get Author/Date 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 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
-
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- 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
-
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.
-