net.sourceforge.cruisecontrol.sourcecontrols
Class ClearCase

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

public class ClearCase
extends java.lang.Object
implements SourceControl

This class implements the SourceControlElement methods for a Clear Case repository.

Author:
Thomas Leseney, Jason Yip, Eric Lefevre, Ralf Krakowski
See Also:
Serialized Form

Constructor Summary
ClearCase()
           
 
Method Summary
 java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
          Returns an List of ClearCaseModification detailing all the changes between now and the last build.
 java.util.Map getProperties()
          Any properties that have been set in this sourcecontrol.
 void setAll(boolean all)
          Set when checking the entire view path.
 void setBranch(java.lang.String branch)
          Sets the branch that we're concerned about checking files into.
 void setProperty(java.lang.String property)
           
 void setRecursive(boolean recursive)
          Set whether to check against sub-folders in the view path
 void setViewpath(java.lang.String path)
          Sets the local working copy to use when making queries.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClearCase

public ClearCase()
Method Detail

setViewpath

public void setViewpath(java.lang.String path)
Sets the local working copy to use when making queries.

Parameters:
path -

setBranch

public void setBranch(java.lang.String branch)
Sets the branch that we're concerned about checking files into.

Parameters:
branch -

setRecursive

public void setRecursive(boolean recursive)
Set whether to check against sub-folders in the view path


setAll

public void setAll(boolean all)
Set when checking the entire view path.

When checking the entire view path this option invokes 'lshistory -all' instead of 'lshistory -recursive', which is much faster.

This option is mutually exclusive with the recursive property.

Note that 'all' does not use your view's config-spec rules. It behaves like having a single line config-spec that selects just ELEMENT * //LATEST (i.e. 'lshistory -all' results that contain @@ are discarded). This differs from 'recurse', which only shows items selected by your current view.


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

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 ClearCaseModification 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.