|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.agent.runner.ProcessListenerAdapter
jetbrains.buildServer.agent.runner.LogLastLinesProcessListener
public class LogLastLinesProcessListener
Process listener which is able to add last process's output lines to the build log.
| Constructor Summary | |
|---|---|
LogLastLinesProcessListener(java.lang.String runnerName,
BuildProgressLogger buildLogger,
int maxSize)
|
|
| Method Summary | |
|---|---|
void |
onErrorOutput(java.lang.String text)
process error output |
void |
onStandardOutput(java.lang.String text)
process standard output |
void |
processFinished(int exitCode)
Process finished, terminated or failed to start. |
protected boolean |
shouldLogLines(int exitCode)
By defaults, return true iff process exit code is != 0 |
| Methods inherited from class jetbrains.buildServer.agent.runner.ProcessListenerAdapter |
|---|
processStarted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogLastLinesProcessListener(java.lang.String runnerName,
BuildProgressLogger buildLogger,
int maxSize)
| Method Detail |
|---|
public void onStandardOutput(@NotNull
java.lang.String text)
ProcessListener
onStandardOutput in interface ProcessListeneronStandardOutput in class ProcessListenerAdaptertext - process stdout output text
public void onErrorOutput(@NotNull
java.lang.String text)
ProcessListener
onErrorOutput in interface ProcessListeneronErrorOutput in class ProcessListenerAdaptertext - process stderr output textpublic void processFinished(int exitCode)
ProcessListenerProcessListener.processStarted(String, java.io.File) was called before
processFinished in interface ProcessListenerprocessFinished in class ProcessListenerAdapterexitCode - resulting exit code of the processprotected boolean shouldLogLines(int exitCode)
exitCode - process exit code
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||