net.sourceforge.cruisecontrol
Class ModificationSet

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.ModificationSet
All Implemented Interfaces:
java.io.Serializable

public class ModificationSet
extends java.lang.Object
implements java.io.Serializable

Set of modifications collected from included SourceControls

See Also:
SourceControl, Serialized Form

Constructor Summary
ModificationSet()
           
 
Method Summary
 void add(SourceControl sourceControl)
           
 void addSourceControl(SourceControl sourceControl)
          Deprecated. *
protected  void filterIgnoredModifications(java.util.List modifications)
          Remove all Modifications that match any of the ignoreFiles-patterns
protected  java.util.List getIgnoreFiles()
           
protected  long getLastModificationMillis(java.util.List modificationList)
           
 org.jdom.Element getModifications(java.util.Date lastBuild)
           
 java.util.Hashtable getProperties()
          Returns a Hashtable of name-value pairs representing any properties set by the SourceControl.
protected  long getQuietPeriodDifference(java.util.Date now, java.util.List modificationList)
           
 java.util.List getSourceControls()
           
 java.util.Date getTimeOfCheck()
           
protected  boolean isLastModificationInQuietPeriod(java.util.Date timeOfCheck, java.util.List modificationList)
           
 boolean isModified()
           
 void setIgnoreFiles(java.lang.String filePatterns)
          Set the list of Glob-File-Patterns to be ignored
 void setQuietPeriod(int seconds)
          Set the amount of time in which there is no source control activity after which it is assumed that it is safe to update from the source control system and initiate a build.
 void setRequireModification(boolean isModifiedAccurate)
          Deprecated.  
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModificationSet

public ModificationSet()
Method Detail

setQuietPeriod

public void setQuietPeriod(int seconds)
Set the amount of time in which there is no source control activity after which it is assumed that it is safe to update from the source control system and initiate a build.


setIgnoreFiles

public void setIgnoreFiles(java.lang.String filePatterns)
                    throws CruiseControlException
Set the list of Glob-File-Patterns to be ignored

Parameters:
filePatterns - a comma separated list of glob patterns. "*" and "?" are valid wildcards example: "?razy-*-.txt,*.jsp"
Throws:
CruiseControlException - if at least one of the patterns is malformed

getIgnoreFiles

protected java.util.List getIgnoreFiles()

addSourceControl

public void addSourceControl(SourceControl sourceControl)
Deprecated. *


add

public void add(SourceControl sourceControl)

getSourceControls

public java.util.List getSourceControls()

isLastModificationInQuietPeriod

protected boolean isLastModificationInQuietPeriod(java.util.Date timeOfCheck,
                                                  java.util.List modificationList)

getLastModificationMillis

protected long getLastModificationMillis(java.util.List modificationList)

getQuietPeriodDifference

protected long getQuietPeriodDifference(java.util.Date now,
                                        java.util.List modificationList)

getProperties

public java.util.Hashtable getProperties()
Returns a Hashtable of name-value pairs representing any properties set by the SourceControl.

Returns:
Hashtable of properties.

getModifications

public org.jdom.Element getModifications(java.util.Date lastBuild)

filterIgnoredModifications

protected void filterIgnoredModifications(java.util.List modifications)
Remove all Modifications that match any of the ignoreFiles-patterns


getTimeOfCheck

public java.util.Date getTimeOfCheck()

isModified

public boolean isModified()

validate

public void validate()
              throws CruiseControlException
Throws:
CruiseControlException

setRequireModification

public void setRequireModification(boolean isModifiedAccurate)
Deprecated.  

Parameters:
isModifiedAccurate -