|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.maven.changelog.AbstractChangeLogGenerator org.apache.maven.cvslib.CvsChangeLogGenerator
A CVS implementation of the ChangeLog
interface.
Field Summary | |
static int |
POS_SCM
|
static int |
POS_SCM_MODULE
|
static int |
POS_SCM_PATH
|
static int |
POS_SCM_SUBTYPE
|
static int |
POS_SCM_TYPE
|
static int |
POS_SCM_USERHOST
|
Fields inherited from class org.apache.maven.changelog.AbstractChangeLogGenerator |
base, changeLogExecutor, clParser, commentFormat, dateRange, entries, errorReader, in, logEnd, logStart, tag, type |
Constructor Summary | |
CvsChangeLogGenerator()
|
Method Summary | |
Collection |
getEntries(ChangeLogParser parser)
Execute cvslib client driving the given parser. |
boolean |
getQuoteDate()
Get the quoteDate property. |
protected String |
getScmDateArgument(Date before,
Date to)
Construct the CVS command-line argument that is used to specify the appropriate date range. |
protected org.apache.tools.ant.types.Commandline |
getScmLogCommand()
Constructs the appropriate command line to execute the scm's log command. |
protected String |
getScmTagArgument(String tagStart,
String tagEnd)
Construct the command-line argument that is passed to the scm client to specify the appropriate tag. |
protected void |
handleParserException(IOException ioe)
Handle ChangeLogParser IOExceptions. |
void |
init(ChangeLog changeLog)
Initialize the generator from the changelog controller. |
void |
setProcessErrorStream(InputStream is)
Set the error stream for reading from cvs log. |
void |
setQuoteDate(boolean newQuoteDate)
Set the quoteDate property. |
Methods inherited from class org.apache.maven.changelog.AbstractChangeLogGenerator |
cleanup, getCommentFormat, getConnection, getLogEnd, getLogStart, logExecute, setCommentFormat, setConnection, setDateRange, setDateRangeFromAbsoluteDate, setLogEnd, setLogStart, setProcessInputStream, setProcessOutputStream, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int POS_SCM
public static final int POS_SCM_TYPE
public static final int POS_SCM_SUBTYPE
public static final int POS_SCM_USERHOST
public static final int POS_SCM_PATH
public static final int POS_SCM_MODULE
Constructor Detail |
public CvsChangeLogGenerator()
Method Detail |
public void setQuoteDate(boolean newQuoteDate)
newQuoteDate
- the quoteDate property to set.public boolean getQuoteDate()
public void init(ChangeLog changeLog)
init
in interface ChangeLogGenerator
init
in class AbstractChangeLogGenerator
changeLog
- The invoking controller (useful for logging)ChangeLogGenerator#init(ChangeLog)
public Collection getEntries(ChangeLogParser parser) throws IOException
getEntries
in interface ChangeLogGenerator
getEntries
in class AbstractChangeLogGenerator
parser
- A parser
to process the scm
output.
entries
parsed from the
scm output.
IOException
- When there are issues executing scm.ChangeLogGenerator#getEntries(ChangeLogParser)
protected org.apache.tools.ant.types.Commandline getScmLogCommand()
AbstractChangeLogGenerator
getScmLogCommand
in class AbstractChangeLogGenerator
protected String getScmDateArgument(Date before, Date to)
getScmDateArgument
in class AbstractChangeLogGenerator
before
- The starting point.to
- The ending point.
protected String getScmTagArgument(String tagStart, String tagEnd)
AbstractChangeLogGenerator
getScmTagArgument
in class AbstractChangeLogGenerator
tagStart
- The tag name for the start of the log (log shouldn't actually contain the tag).tagEnd
- The tag name for the end of the log (the log can contain this tag), or null
to
log all changes since tagStart
.
AbstractChangeLogGenerator.getScmTagArgument(String, String)
protected void handleParserException(IOException ioe) throws IOException
handleParserException
in class AbstractChangeLogGenerator
ioe
- The IOException thrown.
IOException
- If the handler doesn't wish to handle the exception.public void setProcessErrorStream(InputStream is)
setProcessErrorStream
in interface org.apache.tools.ant.taskdefs.ExecuteStreamHandler
setProcessErrorStream
in class AbstractChangeLogGenerator
is
- - an InputStream
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |