net.sourceforge.cruisecontrol.builders
Class ScriptRunner

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.builders.ScriptRunner

public class ScriptRunner
extends java.lang.Object

Takes a script and runs it. Monitors how long the script takes to run, and returns whether the script completed or not.


Nested Class Summary
static class ScriptRunner.AsyncKiller
           
 
Field Summary
static long NO_TIMEOUT
           
 
Constructor Summary
ScriptRunner()
           
 
Method Summary
 boolean runScript(java.io.File workingDir, Script script, long timeout)
          build and return the results via xml. debug status can be determined from log4j category once we get all the logging in place.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_TIMEOUT

public static final long NO_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

ScriptRunner

public ScriptRunner()
Method Detail

runScript

public boolean runScript(java.io.File workingDir,
                         Script script,
                         long timeout)
                  throws CruiseControlException
build and return the results via xml. debug status can be determined from log4j category once we get all the logging in place.

Parameters:
workingDir - The directory to run the script from.
script - The details on the script to be run.
Throws:
CruiseControlException