|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.cruisecontrol.builders.ExecScript
Exec script class. Script support to execute a command and logs the results.
| Constructor Summary | |
ExecScript()
|
|
| Method Summary | |
Commandline |
buildCommandline()
construct the command that we're going to execute. |
void |
consumeLine(java.lang.String line)
Ugly parsing of Exec output into some Elements. |
protected void |
flushCurrentElement()
flush the current log element |
int |
getExitCode()
|
void |
setBuildLogElement(org.jdom.Element buildLogElement)
|
org.jdom.Element |
setBuildLogHeader(org.jdom.Element buildLogElement)
set the "header" for this part of the build log. turns it into an Ant target/task style element for reporting purposes |
void |
setErrorStr(java.lang.String errStr)
|
void |
setExecArgs(java.lang.String execArgs)
|
void |
setExecCommand(java.lang.String execCommand)
|
void |
setExitCode(int exitCode)
exitCode is what is returned from running the script |
void |
setProgress(Progress progress)
|
boolean |
wasError()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExecScript()
| Method Detail |
public Commandline buildCommandline()
throws CruiseControlException
buildCommandline in interface ScriptCruiseControlExceptionpublic void consumeLine(java.lang.String line)
consumeLine in interface StreamConsumerline - the line of output to parseprotected void flushCurrentElement()
public org.jdom.Element setBuildLogHeader(org.jdom.Element buildLogElement)
buildLogElement - the element of the build log
public void setExecArgs(java.lang.String execArgs)
execArgs - The execArgs to set.public void setExecCommand(java.lang.String execCommand)
execCommand - The execCommand to set.public int getExitCode()
getExitCode in interface Scriptpublic void setExitCode(int exitCode)
Script
setExitCode in interface ScriptexitCode - the exit code value to set.public void setErrorStr(java.lang.String errStr)
errStr - the error string to search forpublic void setBuildLogElement(org.jdom.Element buildLogElement)
buildLogElement - The buildLogElement to set.public void setProgress(Progress progress)
progress - The progress callback object to set.public boolean wasError()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||