|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.acmsl.antmake.cvslib.ChangeLogParser
Knows how to parse "cvs log" command output.
org.apache.tools.ant.taskdefs.cvslib.ChangeLogParser| Field Summary | |
static java.text.DateFormat |
CVS_LOG_DATE_FORMAT
The date format returned by cvs log. |
protected static CvsEntry[] |
EMPTY_CVSENTRY_ARRAY
A cached empty CvsEntry array. |
| Constructor Summary | |
ChangeLogParser()
Creates a ChangeLogParser. |
|
| Method Summary | |
protected java.lang.Object |
buildEntryKey(java.lang.String date,
java.lang.String author,
java.lang.String comment)
Builds a key for an entry. |
protected java.lang.String |
getAuthor()
Retrieves the author of the current CVS file being processed. |
protected java.lang.String |
getComment()
Retrieves the comment of the CVS file being processed. |
protected int |
getCurrentState()
Retrieves the current state of the parser. |
protected java.lang.String |
getDate()
Retrieves the date of the current CVS file being processed. |
protected java.util.Map |
getEntries()
Retrieves the CVS entries map. |
CvsEntry[] |
getEntrySetAsArray()
Retrieves the list of RCS entries as an array. |
protected java.lang.String |
getName()
Retrieves the name of the current CVS file being processed. |
protected java.lang.String |
getPreviousRevision()
Retrieves the previous revision of the current CVS file being processed. |
protected java.lang.String |
getRevision()
Retrieves the revision of the current CVS file being processed. |
protected java.util.Date |
parseDate(java.lang.String date)
Parses date out from expected format. |
protected void |
processComment(java.lang.String line)
Processes a line while in GET_COMMENT state. |
protected void |
processDate(java.lang.String line)
Processes a line while in DATE state. |
protected void |
processFile(java.lang.String line)
Processes a line while in GET_FILE state. |
protected void |
processGetPreviousRevision(java.lang.String line)
Processes a line while in GET_PREVIOUS_REVISION state. |
protected void |
processRevision(java.lang.String line)
Processes a line while in REVISION state. |
protected java.lang.String |
removeTrailing(java.lang.String input,
int suffix)
Removes trailing substring. |
protected void |
reset()
Resets all internal attributes except current state. |
protected void |
saveEntry()
Saves the current entry. |
protected void |
setAuthor(java.lang.String author)
Specifies the author. |
protected void |
setComment(java.lang.String comment)
Specifies the comment. |
protected void |
setCurrentState(int state)
Specifies the current state of the parser. |
protected void |
setDate(java.lang.String date)
Specifies the date. |
protected void |
setEntries(java.util.Map map)
Specifies the CVS entries map. |
protected void |
setName(java.lang.String name)
Specifies the name. |
protected void |
setPreviousRevision(java.lang.String previousRevision)
Specifies the previous revision. |
protected void |
setRevision(java.lang.String revision)
Specifies the revision. |
void |
stdout(java.lang.String line)
Receives notification about the process writing to standard output. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final CvsEntry[] EMPTY_CVSENTRY_ARRAY
public static final java.text.DateFormat CVS_LOG_DATE_FORMAT
| Constructor Detail |
public ChangeLogParser()
| Method Detail |
protected void setName(java.lang.String name)
name - the name of the current CVS file being processed.protected java.lang.String getName()
protected void setDate(java.lang.String date)
date - the date of the current CVS file being processed.protected java.lang.String getDate()
protected void setAuthor(java.lang.String author)
author - the author of the current CVS file being processed.protected java.lang.String getAuthor()
protected void setComment(java.lang.String comment)
comment - the comment of the CVS file being processed.protected java.lang.String getComment()
protected void setRevision(java.lang.String revision)
revision - the revision of the current CVS file being processed.protected java.lang.String getRevision()
protected void setPreviousRevision(java.lang.String previousRevision)
previousRevision - the previous revision of the current CVS file
being processed.protected java.lang.String getPreviousRevision()
protected void setCurrentState(int state)
state - the current state of the parser.protected int getCurrentState()
protected void setEntries(java.util.Map map)
map - the map.protected java.util.Map getEntries()
public CvsEntry[] getEntrySetAsArray()
public void stdout(java.lang.String line)
line - the last line read.protected void processComment(java.lang.String line)
line - the line to process.
protected java.lang.String removeTrailing(java.lang.String input,
int suffix)
input - the text to process.suffix - the length of the substring to remove at the end.
protected void processFile(java.lang.String line)
line - the line to process.protected void processRevision(java.lang.String line)
line - the line to process.protected void processDate(java.lang.String line)
line - the line to process.protected void processGetPreviousRevision(java.lang.String line)
line - the line to process.protected void saveEntry()
protected java.util.Date parseDate(java.lang.String date)
date - the string holding the date.
null if unknown date format.
protected java.lang.Object buildEntryKey(java.lang.String date,
java.lang.String author,
java.lang.String comment)
date - the entry's date.author - the author.comment - the comment.
protected void reset()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||