net.sourceforge.cruisecontrol.sourcecontrols
Class AlwaysBuild

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

public class AlwaysBuild
extends FakeUserSourceControl

Returns "true" always, so that a build will happen repeatedly.

Author:
Eric Pugh
See Also:
Serialized Form

Constructor Summary
AlwaysBuild()
           
 
Method Summary
 java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
          For this case, we don't care about the quietperiod, only that one user is modifying the build.
 void validate()
           
 
Methods inherited from class net.sourceforge.cruisecontrol.sourcecontrols.FakeUserSourceControl
getProperties, getSourceControlProperties, getUserName, setProperty, setUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlwaysBuild

public AlwaysBuild()
Method Detail

validate

public void validate()
              throws CruiseControlException
Specified by:
validate in interface SourceControl
Specified by:
validate in class FakeUserSourceControl
Throws:
CruiseControlException
See Also:
SourceControl.validate()

getModifications

public java.util.List getModifications(java.util.Date lastBuild,
                                       java.util.Date now)
For this case, we don't care about the quietperiod, only that one user is modifying the build.

Specified by:
getModifications in interface SourceControl
Specified by:
getModifications in class FakeUserSourceControl
Parameters:
lastBuild - date of last build
now - IGNORED
See Also:
SourceControl.getModifications(java.util.Date, java.util.Date)