|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.sourcecontrols.ConcurrentVersionsSystem
This class implements the SourceControlElement methods for a CVS repository. The call to CVS is assumed to work without any setup. This implies that if the authentication type is pserver the call to cvs login should be done prior to calling this class.
There are also differing CVS client/server implementations (e.g. the official CVS and the CVSNT fork). Note that the log formats of the official CVS have changed starting from version 1.12.9. This class currently knows of 2 different outputs referred to as the 'old' and the 'new' output formats.
Field Summary | |
static java.lang.String |
LOG_DATE_FORMAT
|
Constructor Summary | |
ConcurrentVersionsSystem()
|
Method Summary | |
Commandline |
buildHistoryCommand(java.util.Date lastBuildTime,
java.util.Date checkTime)
|
protected Commandline |
getCommandline()
|
protected net.sourceforge.cruisecontrol.sourcecontrols.ConcurrentVersionsSystem.Version |
getCvsServerVersion()
|
java.util.List |
getModifications(java.util.Date lastBuild,
java.util.Date now)
Returns a List of Modifications detailing all the changes between the last build and the latest revision at the repository |
protected OSEnvironment |
getOSEnvironment()
for mocking * |
java.util.Map |
getProperties()
Any properties that have been set in this sourcecontrol. |
boolean |
isCvsNewOutputFormat()
|
protected java.util.List |
parseStream(java.io.InputStream input)
Parses the input stream, which should be from the cvs log command. |
void |
setCvsRoot(java.lang.String cvsroot)
Sets the CVSROOT for all calls to CVS. |
void |
setLocalWorkingCopy(java.lang.String local)
Sets the local working copy to use when making calls to CVS. |
protected void |
setMailAliases(java.util.Hashtable mailAliases)
|
void |
setModule(java.lang.String module)
Set the cvs module name. |
void |
setProperty(java.lang.String property)
|
void |
setPropertyOnDelete(java.lang.String propertyOnDelete)
|
void |
setReallyQuiet(boolean reallyQuiet)
|
void |
setTag(java.lang.String tag)
Set the cvs tag. |
void |
validate()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String LOG_DATE_FORMAT
Constructor Detail |
public ConcurrentVersionsSystem()
Method Detail |
public void setCvsRoot(java.lang.String cvsroot)
cvsroot
- CVSROOT to use.public void setLocalWorkingCopy(java.lang.String local)
local
- String indicating the relative or absolute path to the local working copy of the module of which to
find the log history.public void setTag(java.lang.String tag)
tag
- the cvs tagpublic void setModule(java.lang.String module)
module
- the cvs modulepublic void setProperty(java.lang.String property)
public void setPropertyOnDelete(java.lang.String propertyOnDelete)
public void setReallyQuiet(boolean reallyQuiet)
reallyQuiet
- When true, this class should use the -Q cvs option instead of -q for the log command.protected net.sourceforge.cruisecontrol.sourcecontrols.ConcurrentVersionsSystem.Version getCvsServerVersion()
public boolean isCvsNewOutputFormat()
public java.util.Map getProperties()
SourceControl
getProperties
in interface SourceControl
protected OSEnvironment getOSEnvironment()
public void validate() throws CruiseControlException
validate
in interface SourceControl
CruiseControlException
public java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
getModifications
in interface SourceControl
lastBuild
- last build timenow
-
public Commandline buildHistoryCommand(java.util.Date lastBuildTime, java.util.Date checkTime) throws CruiseControlException
lastBuildTime
- checkTime
-
CruiseControlException
protected Commandline getCommandline()
protected java.util.List parseStream(java.io.InputStream input) throws java.io.IOException
input
- InputStream to get log data from.
java.io.IOException
protected void setMailAliases(java.util.Hashtable mailAliases)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |