net.sourceforge.cruisecontrol.sourcecontrols
Class ForceOnly

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

public class ForceOnly
extends java.lang.Object
implements SourceControl

Used to define a project that only builds when forced through the JMX interface, since no Modifications are ever returned. If you also want the modifications between two forced builds to be reported, you'll have to use another solution (using Compound, for instance).

Author:
Joris Kuipers
See Also:
Serialized Form

Constructor Summary
ForceOnly()
           
 
Method Summary
 java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
          Get a List of Modifications detailing all the changes between now and the last build
 java.util.Map getProperties()
          Any properties that have been set in this sourcecontrol.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForceOnly

public ForceOnly()
Method Detail

getModifications

public java.util.List getModifications(java.util.Date lastBuild,
                                       java.util.Date now)
Description copied from interface: SourceControl
Get a List of Modifications detailing all the changes between now and the last build

Specified by:
getModifications in interface SourceControl
Parameters:
lastBuild -
now -
Returns:
List of Modification objects

validate

public void validate()
              throws CruiseControlException
Specified by:
validate in interface SourceControl
Throws:
CruiseControlException

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