net.sourceforge.cruisecontrol.sourcecontrols
Class SSCM

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

public class SSCM
extends java.lang.Object
implements SourceControl

This defines a child element for the ModificationSet element.

Author:
Matt Harp
See Also:
Serialized Form

Nested Class Summary
static class SSCM.SSCMCLIBoolParam
           
static class SSCM.SSCMCLIParam
           
static class SSCM.SSCMCLIStringParam
           
 
Constructor Summary
SSCM()
           
 
Method Summary
protected  java.util.Date buildDateTimeFromCLIOutput(java.lang.String str)
           
protected  java.lang.String buildDateTimeRangeCLIParam(java.util.Date lastBuild, java.util.Date now)
           
protected  java.util.List executeCLICommand(java.util.List paramList, java.lang.String strDTRangeParam)
           
 java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
          Get a 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.
protected  java.util.List parseCLIOutput(java.io.InputStream input)
           
protected  Modification parseOutputLine(java.lang.String str)
           
 void setBranch(java.lang.String str)
           
 void setFile(java.lang.String str)
           
 void setProperty(java.lang.String property)
           
 void setRecursive(java.lang.String str)
           
 void setRepository(java.lang.String str)
           
 void setSearchRegExp(java.lang.String str)
           
 void setServerConnect(java.lang.String str)
           
 void setServerLogin(java.lang.String str)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSCM

public SSCM()
Method Detail

validate

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

setBranch

public void setBranch(java.lang.String str)

setRepository

public void setRepository(java.lang.String str)

setFile

public void setFile(java.lang.String str)

setServerConnect

public void setServerConnect(java.lang.String str)

setServerLogin

public void setServerLogin(java.lang.String str)

setSearchRegExp

public void setSearchRegExp(java.lang.String str)

setRecursive

public void setRecursive(java.lang.String str)

getModifications

public java.util.List getModifications(java.util.Date lastBuild,
                                       java.util.Date now)
Description copied from interface: SourceControl
Get a List of Modifications detailing all the changes between now and the last build

Specified by:
getModifications in interface SourceControl
Parameters:
lastBuild -
now -
Returns:
List of Modification objects

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

setProperty

public void setProperty(java.lang.String property)

executeCLICommand

protected java.util.List executeCLICommand(java.util.List paramList,
                                           java.lang.String strDTRangeParam)

parseCLIOutput

protected java.util.List parseCLIOutput(java.io.InputStream input)
                                 throws java.io.IOException
Throws:
java.io.IOException

parseOutputLine

protected Modification parseOutputLine(java.lang.String str)

buildDateTimeRangeCLIParam

protected java.lang.String buildDateTimeRangeCLIParam(java.util.Date lastBuild,
                                                      java.util.Date now)

buildDateTimeFromCLIOutput

protected java.util.Date buildDateTimeFromCLIOutput(java.lang.String str)