public interface ProcessRunner
| Modifier and Type | Method and Description |
|---|---|
default String |
run(List<String> command)
Starts an external process using the given command.
|
int |
run(List<String> command,
ProcessContext processContext)
Starts an external process using the given command.
|
default String run(List<String> command)
command - the command to executeProcessExecutionException - in case the process fails or returns an exit code that is different from zero.int run(List<String> command, ProcessContext processContext)
command - the command to executeprocessContext - the process contextProcessExecutionException - in case the process fails or returns an exit code that is different from zero.Copyright © 2022. All rights reserved.