net.sourceforge.cruisecontrol.sourcecontrols
Class TimeBuild
java.lang.Object
net.sourceforge.cruisecontrol.sourcecontrols.FakeUserSourceControl
net.sourceforge.cruisecontrol.sourcecontrols.TimeBuild
- All Implemented Interfaces:
- java.io.Serializable, SourceControl
- public class TimeBuild
- extends FakeUserSourceControl
Provide a "time" using hhmm format that specifies when a build should be
triggered. Once one successful build occurs, no more occur. If a build occurs
successfully via other means as the time threshold is crossed then this build
won't occur.
The is useful when you need a project to be built on a time basis despite no
changes to source control.
- Version:
- $Id: TimeBuild.java 2885 2007-02-26 05:34:49Z jfredrick $
- Author:
- Eric Pugh
- See Also:
- Serialized Form
Method Summary |
java.util.List |
getModifications(java.util.Date lastBuild,
java.util.Date now)
Check if TimeBuild "time" threshold has passed with out a successful
build. |
void |
setTime(java.lang.String timeString)
The threshold time to cross that starts triggering a build |
java.lang.String |
toString()
|
void |
validate()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TimeBuild
public TimeBuild()
setTime
public void setTime(java.lang.String timeString)
- The threshold time to cross that starts triggering a build
- Parameters:
timeString
- The time in hhmm format
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)
- Check if TimeBuild "time" threshold has passed with out a successful
build. If so, trigger the build.
- Specified by:
getModifications
in interface SourceControl
- Specified by:
getModifications
in class FakeUserSourceControl
- Parameters:
lastBuild
- date of last buildnow
- current time- See Also:
SourceControl.getModifications(java.util.Date, java.util.Date)
toString
public java.lang.String toString()