Class ProcessListenerAdapter
- java.lang.Object
-
- jetbrains.buildServer.agent.runner.ProcessListenerAdapter
-
- All Implemented Interfaces:
EventListener,ProcessListener
- Direct Known Subclasses:
LoggingProcessListener,LogLastLinesProcessListener
public class ProcessListenerAdapter extends Object implements ProcessListener
- Since:
- 6.0
- Author:
- Eugene Petrenko (eugene.petrenko@jetbrains.com)
-
-
Constructor Summary
Constructors Constructor Description ProcessListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonErrorOutput(String text)process error outputvoidonStandardOutput(String text)process standard outputvoidprocessFinished(int exitCode)Process finished, terminated or failed to start.voidprocessStarted(String programCommandLine, File workingDirectory)Process was started.*
-
-
-
Method Detail
-
onStandardOutput
public void onStandardOutput(@NotNull String text)Description copied from interface:ProcessListenerprocess standard output- Specified by:
onStandardOutputin interfaceProcessListener- Parameters:
text- process stdout output text
-
onErrorOutput
public void onErrorOutput(@NotNull String text)Description copied from interface:ProcessListenerprocess error output- Specified by:
onErrorOutputin interfaceProcessListener- Parameters:
text- process stderr output text
-
processStarted
public void processStarted(@NotNull String programCommandLine, @NotNull File workingDirectory)Description copied from interface:ProcessListenerProcess was started.*- Specified by:
processStartedin interfaceProcessListener- Parameters:
programCommandLine- program commandline to log. The actual commandline was collected as list of arguments and sent to java api as the list.workingDirectory- process working directory
-
processFinished
public void processFinished(int exitCode)
Description copied from interface:ProcessListenerProcess finished, terminated or failed to start. Called only ifProcessListener.processStarted(String, java.io.File)was called before- Specified by:
processFinishedin interfaceProcessListener- Parameters:
exitCode- resulting exit code of the process
-
-