net.sourceforge.cruisecontrol.sourcecontrols
Class SnapshotCM

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

public class SnapshotCM
extends java.lang.Object
implements SourceControl

Retrieves change history from SnapshotCM source control using whist command.

Author:
patrick.conant@hp.com
See Also:
Serialized Form

Nested Class Summary
static class SnapshotCM.SourcePath
           
 
Field Summary
static java.lang.String OUT_DATE_FORMAT
           
 
Constructor Summary
SnapshotCM()
           
 
Method Summary
 SnapshotCM.SourcePath createSourcePath()
           
 java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
          Returns an List of Modification detailing all the changes between now and the last build.
 java.util.Map getProperties()
          Any properties that have been set in this sourcecontrol.
 void setProperty(java.lang.String property)
           
 void setPropertyOnDelete(java.lang.String propertyOnDelete)
          From SourceControl interface.
 void setSourcePath(java.lang.String sourcePath)
           
 void setSourcePaths(java.lang.String sourcePaths)
           
 void validate()
          From SourceControl interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUT_DATE_FORMAT

public static final java.lang.String OUT_DATE_FORMAT
See Also:
Constant Field Values
Constructor Detail

SnapshotCM

public SnapshotCM()
Method Detail

setProperty

public void setProperty(java.lang.String property)

setPropertyOnDelete

public void setPropertyOnDelete(java.lang.String propertyOnDelete)
From SourceControl interface. n


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

setSourcePaths

public void setSourcePaths(java.lang.String sourcePaths)

setSourcePath

public void setSourcePath(java.lang.String sourcePath)

createSourcePath

public SnapshotCM.SourcePath createSourcePath()

validate

public void validate()
              throws CruiseControlException
From SourceControl interface.

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 Modification 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, NOT USED
Returns:
the list of modifications, an empty (not null) list if no modifications.