net.sourceforge.cruisecontrol.bootstrappers
Class ExecBootstrapper

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.bootstrappers.ExecBootstrapper
All Implemented Interfaces:
Bootstrapper, java.io.Serializable

public class ExecBootstrapper
extends java.lang.Object
implements Bootstrapper

See Also:
Serialized Form

Constructor Summary
ExecBootstrapper()
           
 
Method Summary
 void bootstrap()
          Perform the bootstrapping.
 void setArgs(java.lang.String args)
          Sets the arguments for the command to execute
 void setCommand(java.lang.String cmd)
          Sets the command to execute
 void setErrorStr(java.lang.String errStr)
          Sets the error string to search for in the command output
 void setTimeout(long timeout)
          Sets build timeout in seconds.
 void setWorkingDir(java.lang.String dir)
          Sets the working directory where the command is to be executed
 void validate()
          Called after the configuration is read to make sure that all the mandatory parameters were specified..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecBootstrapper

public ExecBootstrapper()
Method Detail

validate

public void validate()
              throws CruiseControlException
Called after the configuration is read to make sure that all the mandatory parameters were specified..

Specified by:
validate in interface Bootstrapper
Throws:
CruiseControlException - if there was a configuration error.

bootstrap

public void bootstrap()
               throws CruiseControlException
Description copied from interface: Bootstrapper
Perform the bootstrapping.

Specified by:
bootstrap in interface Bootstrapper
Throws:
CruiseControlException - if bootstrap fails

setTimeout

public void setTimeout(long timeout)
Sets build timeout in seconds.

Parameters:
timeout - long build timeout

setCommand

public void setCommand(java.lang.String cmd)
Sets the command to execute

Parameters:
cmd - the command to execute

setArgs

public void setArgs(java.lang.String args)
Sets the arguments for the command to execute

Parameters:
args - arguments for the command to execute

setErrorStr

public void setErrorStr(java.lang.String errStr)
Sets the error string to search for in the command output

Parameters:
errStr - the error string to search for in the command output

setWorkingDir

public void setWorkingDir(java.lang.String dir)
Sets the working directory where the command is to be executed

Parameters:
dir - the directory where the command is to be executed