Package org.bgerp.util
Class RuntimeRunner
java.lang.Object
org.bgerp.util.RuntimeRunner
Runner of OS commands, logging STDOUT and STDERR outputs
with levels INFO and ERROR respectively and collecting those.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RuntimeRunner
-
-
Method Details
-
directory
Working directory- Parameters:
value- the directory- Returns:
- the runner
-
stdErr
- Returns:
- lines of STDERR
-
stdOut
- Returns:
- lines of STDOUT
-
run
Execute OS commands- Returns:
- the runner
- Throws:
IOExceptionInterruptedExceptionBGException- if exit code wasn't 0
-
runSafe
Execute OS commands- Returns:
- the exit code
- Throws:
IOExceptionInterruptedException
-