Package dev.enola.common.exec.vorburger
Interface Runner
- All Known Implementing Classes:
TestRunner,VorburgerExecRunner
public interface Runner
API to easily run an external process. Implementations could be using e.g. java.lang.
ProcessBuilder, or ch.vorburger.exec, or NuProcess, or zt-exec.-
Method Summary
Modifier and TypeMethodDescriptiondefault intbash(ExpectedExitCode expectedExitCode, Path dir, String command, Appendable output, Duration timeout) intexec(ExpectedExitCode expectedExitCode, Path dir, List<String> command, Appendable output, Duration timeout)
-
Method Details
-
exec
int exec(ExpectedExitCode expectedExitCode, Path dir, List<String> command, Appendable output, Duration timeout) throws Exception - Throws:
Exception
-
bash
default int bash(ExpectedExitCode expectedExitCode, Path dir, String command, Appendable output, Duration timeout) throws Exception - Throws:
Exception
-