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 2996 2007-04-04 23:49:46Z pauljulius $
Author:
Richard Wagner
See Also:
Serialized Form

Constructor Summary
PVCS()
           
 
Method Summary
 java.lang.String getLoginid()
           
 java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
          Returns an List of Modifications detailing all the changes between now and the last build.
 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 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

getPvcsbin

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

Returns:
String

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)

setPvcssubproject

public void setPvcssubproject(java.lang.String subproject)

setPvcsversionlabel

public void setPvcsversionlabel(java.lang.String versionlabel)

setInDateFormat

public void setInDateFormat(java.lang.String inDateFormat)

setOutDateFormat

public void setOutDateFormat(java.lang.String outDateFormat)

setProperty

public void setProperty(java.lang.String propertyName)

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

validate

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

getModifications

public java.util.List getModifications(java.util.Date lastBuild,
                                       java.util.Date now)
Returns an List of 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

getLoginid

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

setLoginid

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

setArchiveFileSuffix

public void setArchiveFileSuffix(java.lang.String archiveSuffix)