public class CommandExecutor extends Object
|Modifier and Type||Method and Description|
Executes a command with
final Logger logger
public CommandExecutor(Logger logger)
public int executeCommand(List<String> command, File workingDirectory, Map<String,String> environmentVariables) throws IOException, InterruptedException
ProcessBuilder, but also logs the call and redirects its input and output to our process.
Copyright © 2023. All rights reserved.