|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
hudson.org.apache.tools.ant.taskdefs.AbstractCvsTask
hudson.org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask
public class ChangeLogTask
Examines the output of cvs log and group related changes together.
It produces an XML output representing the list of changes.<!-- Root element --> <!ELEMENT changelog (entry+)> <!-- CVS Entry --> <!ELEMENT entry (date,author,file+,msg)> <!-- Date of cvs entry --> <!ELEMENT date (#PCDATA)> <!-- Author of change --> <!ELEMENT author (#PCDATA)> <!-- List of files affected --> <!ELEMENT msg (#PCDATA)> <!-- File changed --> <!ELEMENT file (name,revision,prevrevision?)> <!-- Name of the file --> <!ELEMENT name (#PCDATA)> <!-- Revision number --> <!ELEMENT revision (#PCDATA)> <!-- Previous revision number --> <!ELEMENT prevrevision (#PCDATA)>
| Field Summary |
|---|
| Fields inherited from class hudson.org.apache.tools.ant.taskdefs.AbstractCvsTask |
|---|
DEFAULT_COMPRESSION_LEVEL |
| Fields inherited from class org.apache.tools.ant.Task |
|---|
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
ChangeLogTask()
|
|
| Method Summary | |
|---|---|
void |
addFile(String fileName)
Adds a file about which cvs logs will be generated. |
void |
addUser(CvsUser user)
Add a user to list changelog knows about. |
void |
execute()
Execute task |
File |
getDir()
|
protected org.apache.tools.ant.taskdefs.ExecuteStreamHandler |
getExecuteStreamHandler(InputStream input)
find the handler and instantiate it if it does not exist yet |
void |
setBranch(String branch)
|
void |
setDaysinpast(int days)
Set the number of days worth of log entries to process. |
void |
setDeststream(OutputStream destfile)
Set the output stream for the log. |
void |
setDir(File dir)
Set the base dir for cvs. |
void |
setEnd(Date stop)
Set the date at which the changelog should stop. |
void |
setFile(List<String> files)
|
void |
setStart(Date start)
Set the date at which the changelog should start. |
void |
setUsersfile(File usersFile)
Set a lookup list of user names & addresses |
| Methods inherited from class hudson.org.apache.tools.ant.taskdefs.AbstractCvsTask |
|---|
addCommandArgument, addCommandArgument, addConfiguredCommandline, addConfiguredCommandline, configureCommandline, getCommand, getCvsRoot, getCvsRsh, getDest, getErrorStream, getOutputStream, getPackage, getPassFile, getPort, getTag, removeCommandline, runCommand, setAppend, setCommand, setCompression, setCompressionLevel, setCvsExe, setCvsRoot, setCvsRsh, setDate, setDest, setError, setErrorStream, setFailOnError, setNoexec, setOutput, setOutputStream, setPackage, setPassfile, setPort, setQuiet, setReallyquiet, setTag |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChangeLogTask()
| Method Detail |
|---|
public void setDir(File dir)
dir - The new dir valuepublic File getDir()
public void setDeststream(OutputStream destfile)
destfile - The new destfile valuepublic void setUsersfile(File usersFile)
usersFile - The file containing the users info.public void addUser(CvsUser user)
user - the userpublic void setStart(Date start)
start - The date at which the changelog should start.public void setBranch(String branch)
public void setEnd(Date stop)
stop - The date at which the changelog should stop.public void setDaysinpast(int days)
days - the number of days of log to process.public void addFile(String fileName)
fileName - fileName relative to setDir(File).public void setFile(List<String> files)
public void execute()
throws org.apache.tools.ant.BuildException
execute in class AbstractCvsTaskorg.apache.tools.ant.BuildException - if something goes wrong executing the
cvs commandprotected org.apache.tools.ant.taskdefs.ExecuteStreamHandler getExecuteStreamHandler(InputStream input)
AbstractCvsTask
getExecuteStreamHandler in class AbstractCvsTask
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||