net.sourceforge.cruisecontrol.sourcecontrols
Class Store

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

public class Store
extends java.lang.Object
implements SourceControl

This class implements the SourceControl methods for a Store repository, which is the version control system used by Cincom Smalltalk Visualworks.

Author:
Randy Coulman
See Also:
smalltalk.cincom.com, Serialized Form

Constructor Summary
Store()
           
 
Method Summary
static java.text.DateFormat getDateFormatter()
           
 java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
          Returns a list of modifications detailing all the changes between the last build and the latest revision in the repository.
 java.util.Map getProperties()
          Any properties that have been set in this sourcecontrol.
 void setMinimumBlessingLevel(java.lang.String blessing)
          Sets a minimum blessing level to select versions of interest.
 void setPackages(java.lang.String packageNames)
          Sets the list of Store packages to be checked.
 void setParcelBuilderFile(java.lang.String filename)
          Sets the name of a file to store the list of head package versions.
 void setProfile(java.lang.String profile)
          Sets the name of the Store profile to check for modifications.
 void setProperty(java.lang.String property)
           
 void setScript(java.lang.String script)
          Sets the script to use to make calls to Store.
 void setVersionRegex(java.lang.String regex)
          Sets a regex to use to select versions of interest.
 void setWorkingDirectory(java.lang.String directory)
          Sets the working directory to use when interacting with Store.
 void validate()
          This method validates that at least the repository location or the local working copy location has been specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Store

public Store()
Method Detail

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)

setWorkingDirectory

public void setWorkingDirectory(java.lang.String directory)
Sets the working directory to use when interacting with Store.

Parameters:
directory - String indicating the directory to use as the working directory

setScript

public void setScript(java.lang.String script)
Sets the script to use to make calls to Store. This script should start a VisualWorks image with the CruiseControl package loaded and pass on the rest of the command-line arguments supplied by this plugin.

Parameters:
script - String indicating the executable script to use when making calls to Store.

setProfile

public void setProfile(java.lang.String profile)
Sets the name of the Store profile to check for modifications.

Parameters:
profile - String indicating the name of the Store profile to connect to when checking for modifications

setPackages

public void setPackages(java.lang.String packageNames)
Sets the list of Store packages to be checked.

Parameters:
packageNames - a comma-separated list of package names

setVersionRegex

public void setVersionRegex(java.lang.String regex)
Sets a regex to use to select versions of interest.

Parameters:
regex - String containing a regular expression that matches versions of interest

setMinimumBlessingLevel

public void setMinimumBlessingLevel(java.lang.String blessing)
Sets a minimum blessing level to select versions of interest.

Parameters:
blessing - String containing the minimum blessing level that package versions must have to be included

setParcelBuilderFile

public void setParcelBuilderFile(java.lang.String filename)
Sets the name of a file to store the list of head package versions.

Parameters:
filename - String containing the filename used to store input for ParcelBuilder to use to deploy parcels

validate

public void validate()
              throws CruiseControlException
This method validates that at least the repository location or the local working copy location has been specified.

Specified by:
validate in interface SourceControl
Throws:
CruiseControlException - Thrown when the repository location and the local working copy location are both null

getModifications

public java.util.List getModifications(java.util.Date lastBuild,
                                       java.util.Date now)
Returns a list of modifications detailing all the changes between the last build and the latest revision in the repository.

Specified by:
getModifications in interface SourceControl
Parameters:
lastBuild -
now -
Returns:
the list of modifications, or an empty list if we failed to retrieve the changes.

getDateFormatter

public static java.text.DateFormat getDateFormatter()