net.sourceforge.cruisecontrol.sourcecontrols
Class PVCS

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.sourcecontrols.PVCS
All Implemented Interfaces:
java.io.Serializable, SourceControl

public class PVCS
extends java.lang.Object
implements SourceControl

This class implements the SourceControlElement methods for a PVCS repository.

Version:
$Id: PVCS.java 3714 2007-11-04 07:00:10Z jchyip $
Author:
Richard Wagner
See Also:
Serialized Form

Nested Class Summary
static class PVCS.PvcsStreamConsumer
           
 
Constructor Summary
PVCS()
           
 
Method Summary
protected  void executeCommandline(Commandline command, PVCS.PvcsStreamConsumer consumer)
           
protected  java.lang.String getExecutable(java.lang.String exe)
           
 java.lang.String getLoginid()
           
 java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
          Returns an Listof Modifications detailing all the changes between now and the last build.
protected  java.util.List getModifications(java.util.Date lastBuild, java.util.Date now, PVCS.PvcsStreamConsumer consumer)
           
 java.util.Map getProperties()
          Any properties that have been set in this sourcecontrol.
 java.lang.String getPvcsbin()
          Get name of the PVCS bin directory
 void setArchiveFileSuffix(java.lang.String archiveSuffix)
           
 void setInDateFormat(java.lang.String inDateFormat)
           
 void setLoginid(java.lang.String loginId)
           
 void setOutDateFormat(java.lang.String outDateFormat)
           
 void setProperty(java.lang.String propertyName)
           
 void setPvcsbin(java.lang.String bin)
          Specifies the location of the PVCS bin directory
 void setPvcsproject(java.lang.String project)
           
 void setPvcspromotiongroup(java.lang.String promotiongroup)
           
 void setPvcssubproject(java.lang.String subproject)
           
 void setPvcsversionlabel(java.lang.String versionlabel)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PVCS

public PVCS()
Method Detail

executeCommandline

protected void executeCommandline(Commandline command,
                                  PVCS.PvcsStreamConsumer consumer)
                           throws CruiseControlException
Throws:
CruiseControlException

getExecutable

protected java.lang.String getExecutable(java.lang.String exe)

getLoginid

public java.lang.String getLoginid()
Returns:
loginId

getModifications

public java.util.List getModifications(java.util.Date lastBuild,
                                       java.util.Date now)
Returns an Listof Modifications detailing all the changes between now and the last build.

Specified by:
getModifications in interface SourceControl
Parameters:
lastBuild - the last build time
now - time now, or time to check
Returns:
the list of modifications, an empty (not null) list if no modifications or if developer had checked in files since quietPeriod seconds ago. Note: Internally uses external filesystem for files CruiseControlPVCS.pcli, files.tmp, vlog.txt

getModifications

protected java.util.List getModifications(java.util.Date lastBuild,
                                          java.util.Date now,
                                          PVCS.PvcsStreamConsumer consumer)

getProperties

public java.util.Map getProperties()
Description copied from interface: SourceControl
Any properties that have been set in this sourcecontrol. Will be passed onto the Builder, which may then pass the properties to the underlying build implementation. For example, the Ant builder will define these properties so that the underlying Ant script can use them.

Specified by:
getProperties in interface SourceControl

getPvcsbin

public java.lang.String getPvcsbin()
Get name of the PVCS bin directory

Returns:
String

setArchiveFileSuffix

public void setArchiveFileSuffix(java.lang.String archiveSuffix)

setInDateFormat

public void setInDateFormat(java.lang.String inDateFormat)

setLoginid

public void setLoginid(java.lang.String loginId)
Parameters:
loginId -

setOutDateFormat

public void setOutDateFormat(java.lang.String outDateFormat)

setProperty

public void setProperty(java.lang.String propertyName)

setPvcsbin

public void setPvcsbin(java.lang.String bin)
Specifies the location of the PVCS bin directory

Parameters:
bin - Specifies the location of the PVCS bin directory

setPvcsproject

public void setPvcsproject(java.lang.String project)

setPvcspromotiongroup

public void setPvcspromotiongroup(java.lang.String promotiongroup)

setPvcssubproject

public void setPvcssubproject(java.lang.String subproject)

setPvcsversionlabel

public void setPvcsversionlabel(java.lang.String versionlabel)

validate

public void validate()
              throws CruiseControlException
Specified by:
validate in interface SourceControl
Throws:
CruiseControlException