| java.lang.Object net.sourceforge.cruisecontrol.sourcecontrols.ConcurrentVersionsSystem
ConcurrentVersionsSystem | public class ConcurrentVersionsSystem implements SourceControl(Code) | | 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.
author: Paul Julius author: Robert Watkins author: Frederic Lavigne author: Jason Yip author: Marc Paquette author: Johnny Cass author: McClain Looney |
DEFAULT_CVS_SERVER_VERSION | final static Version DEFAULT_CVS_SERVER_VERSION(Code) | | |
LOG_DATE_FORMAT | final public static String LOG_DATE_FORMAT(Code) | | |
OFFICIAL_CVS_NAME | final static String OFFICIAL_CVS_NAME(Code) | | name of the official cvs as returned as part of the 'cvs version' command output
|
buildHistoryCommand | public Commandline buildHistoryCommand(Date lastBuildTime, Date checkTime) throws CruiseControlException(Code) | | Parameters: lastBuildTime - Parameters: checkTime - CommandLine for "cvs -d CVSROOT -q log -N -dlastbuildtime |
getCvsServerVersion | protected Version getCvsServerVersion()(Code) | | |
getModifications | public List getModifications(Date lastBuild, Date now)(Code) | | Returns a List of Modifications detailing all the changes between the last build and the latest revision at the
repository
Parameters: lastBuild - last build time maybe empty, never null. |
getProperties | public Map getProperties()(Code) | | |
isCvsNewOutputFormat | public boolean isCvsNewOutputFormat()(Code) | | |
parseStream | protected List parseStream(InputStream input) throws IOException(Code) | | Parses the input stream, which should be from the cvs log command. This method will format the data found in the
input stream into a List of Modification instances.
Parameters: input - InputStream to get log data from. List of Modification elements, maybe empty never null. throws: IOException - |
setCompression | public void setCompression(String level)(Code) | | Sets the compression level used for the call to cvs, corresponding to the "-z" command line parameter. When not
set, the command line parameter is NOT included.
Parameters: level - Valid levels are 1 (high speed, low compression) to 9 (low speed, high compression), or 0to disable compression. |
setCvsRoot | public void setCvsRoot(String cvsroot)(Code) | | Sets the CVSROOT for all calls to CVS.
Parameters: cvsroot - CVSROOT to use. |
setLocalWorkingCopy | public void setLocalWorkingCopy(String local)(Code) | | Sets the local working copy to use when making calls to CVS.
Parameters: local - String indicating the relative or absolute path to the local working copy of the module of which tofind the log history. |
setModule | public void setModule(String module)(Code) | | Set the cvs module name. Note that this is only used when localworkingcopy is not set.
Parameters: module - the cvs module |
setPropertyOnDelete | public void setPropertyOnDelete(String propertyOnDelete)(Code) | | |
setReallyQuiet | public void setReallyQuiet(boolean reallyQuiet)(Code) | | Parameters: reallyQuiet - When true, this class should use the -Q cvs option instead of -q for the log command. |
setTag | public void setTag(String tag)(Code) | | Set the cvs tag. Note this should work with names, numbers, and anything else you can put on log -rTAG
Parameters: tag - the cvs tag |
useHead | boolean useHead()(Code) | | |
|
|