net.sourceforge.cruisecontrol.sourcecontrols
Class MKS

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

public class MKS
extends java.lang.Object
implements SourceControl

This class implements the SourceControlElement methods for a MKS repository. The call to MKS is assumed to work with any setup: The call to MKS login should be done prior to calling this class. * attributes: localWorkingDir - local directory for the sandbox project - the name and path to the MKS project doNothing - if this attribute is set to true, no mks command is executed. This is for testing purposes, if a potentially slow mks server connection should avoid

Author:
Suresh K Bathala Skila, Inc., Dominik Hirt, Wincor-Nixdorf International GmbH, Leipzig
See Also:
Serialized Form

Constructor Summary
MKS()
           
 
Method Summary
 java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
          Returns an ArrayList of Modifications.
 java.util.Map getProperties()
          Any properties that have been set in this sourcecontrol.
 void setDoNothing(java.lang.String doNothing)
           
 void setLocalWorkingDir(java.lang.String local)
          Sets the local working copy to use when making calls to MKS.
 void setProject(java.lang.String project)
           
 void setProperty(java.lang.String property)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MKS

public MKS()
Method Detail

setProject

public void setProject(java.lang.String project)

setLocalWorkingDir

public void setLocalWorkingDir(java.lang.String local)
Sets the local working copy to use when making calls to MKS.

Parameters:
local - String indicating the relative or absolute path to the local working copy of the module of which to find the log history.

setProperty

public void setProperty(java.lang.String property)

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

setDoNothing

public void setDoNothing(java.lang.String doNothing)

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 ArrayList of Modifications. MKS ignores dates for such a range so therefor ALL modifications since the last resynch step are returned.

Specified by:
getModifications in interface SourceControl
Parameters:
lastBuild - Last build time.
now - Time now, or time to check.
Returns:
maybe empty, never null.
Throws:
CruiseControlException