|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.cruisecontrol.util.PerDayScheduleItem
net.sourceforge.cruisecontrol.Builder
net.sourceforge.cruisecontrol.builders.ExecBuilder
Exec builder class. Executes a command line as a builder and determines whether the command was successful or not. A string can be supplied to additionally check for certain error messages in the output
| Field Summary |
| Fields inherited from class net.sourceforge.cruisecontrol.util.PerDayScheduleItem |
INVALID_NAME_OF_DAY, NOT_SET |
| Constructor Summary | |
ExecBuilder()
|
|
| Method Summary | |
org.jdom.Element |
build(java.util.Map buildProperties,
Progress progressIn)
execute the command and return the results as XML |
org.jdom.Element |
buildWithTarget(java.util.Map properties,
java.lang.String target,
Progress progress)
Execute a build with the given target. |
protected ExecScript |
createExecScript()
|
java.lang.String |
getBuildError()
Get whether there was n error written to the build log |
java.lang.String |
getCommand()
Gets the command to execute. |
protected boolean |
runScript(ExecScript script,
ScriptRunner scriptRunner,
java.lang.String dir)
|
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()
|
| 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 |
public ExecBuilder()
| Method Detail |
public void validate()
throws CruiseControlException
validate in class BuilderCruiseControlException
public org.jdom.Element build(java.util.Map buildProperties,
Progress progressIn)
throws CruiseControlException
build in class BuilderbuildProperties - build propertiesprogressIn - callback to provide progress updates
CruiseControlException - if something breaks
protected boolean runScript(ExecScript script,
ScriptRunner scriptRunner,
java.lang.String dir)
throws CruiseControlException
CruiseControlExceptionprotected ExecScript createExecScript()
public org.jdom.Element buildWithTarget(java.util.Map properties,
java.lang.String target,
Progress progress)
throws CruiseControlException
Builder
buildWithTarget in class Builderproperties - build propertiestarget - the build target to call, overrides target defined in configprogress - callback to provide progress updates
CruiseControlException - if something breakspublic void setTimeout(long timeout)
timeout - long build timeoutpublic void setCommand(java.lang.String cmd)
cmd - the command to executepublic java.lang.String getCommand()
public void setArgs(java.lang.String args)
args - arguments for the command to executepublic void setErrorStr(java.lang.String errStr)
errStr - the error string to search for in the command outputpublic void setWorkingDir(java.lang.String dir)
dir - the directory where the command is to be executedpublic java.lang.String getBuildError()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||