net.sourceforge.cruisecontrol.builders
Class CompositeBuilder

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.util.PerDayScheduleItem
      extended bynet.sourceforge.cruisecontrol.Builder
          extended bynet.sourceforge.cruisecontrol.builders.CompositeBuilder
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class CompositeBuilder
extends Builder

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sourceforge.cruisecontrol.util.PerDayScheduleItem
INVALID_NAME_OF_DAY, NOT_SET
 
Constructor Summary
CompositeBuilder()
           
 
Method Summary
 void add(Builder builder)
           
 org.jdom.Element build(java.util.Map properties, Progress progressIn)
          Execute a build.
 org.jdom.Element buildWithTarget(java.util.Map properties, java.lang.String target, Progress progressIn)
          Execute a build with the given target.
 Builder[] getBuilders()
           
 void setTimeout(long timeout)
           
 void validate()
           
 
Methods inherited from class net.sourceforge.cruisecontrol.Builder
compareTo, getGroup, getMultiple, getShowProgress, getTime, isValidDay, setGroup, setMultiple, setShowProgress, setTime
 
Methods inherited from class net.sourceforge.cruisecontrol.util.PerDayScheduleItem
getDay, setDay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeBuilder

public CompositeBuilder()
Method Detail

add

public void add(Builder builder)

build

public org.jdom.Element build(java.util.Map properties,
                              Progress progressIn)
                       throws CruiseControlException
Description copied from class: Builder
Execute a build.

Specified by:
build in class Builder
Parameters:
properties - build properties
progressIn - callback to provide progress updates
Returns:
the log resulting from executing the build
Throws:
CruiseControlException - if something breaks

buildWithTarget

public org.jdom.Element buildWithTarget(java.util.Map properties,
                                        java.lang.String target,
                                        Progress progressIn)
                                 throws CruiseControlException
Description copied from class: Builder
Execute a build with the given target.

Specified by:
buildWithTarget in class Builder
Parameters:
properties - build properties
target - the build target to call, overrides target defined in config
progressIn - callback to provide progress updates
Returns:
the log resulting from executing the build
Throws:
CruiseControlException - if something breaks

validate

public void validate()
              throws CruiseControlException
Overrides:
validate in class Builder
Throws:
CruiseControlException

getBuilders

public Builder[] getBuilders()
Returns:
array of the builders in this composite.

setTimeout

public void setTimeout(long timeout)
Parameters:
timeout - The timeout (in seconds) to set.