|
||||||||||
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)
execute the command and return the results as XML |
org.jdom.Element |
buildWithTarget(java.util.Map properties,
java.lang.String target)
|
java.lang.String |
getBuildError()
Get whether there was n error written to the build log |
java.lang.String |
getCommand()
Gets the command to execute. |
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, getTime, isValidDay, setGroup, setMultiple, 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 Builder
CruiseControlException
public org.jdom.Element build(java.util.Map buildProperties) throws CruiseControlException
build
in class Builder
CruiseControlException
public org.jdom.Element buildWithTarget(java.util.Map properties, java.lang.String target) throws CruiseControlException
buildWithTarget
in class Builder
CruiseControlException
public 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 |