[Minor] Added a timeout in ProcessHelper
This commit is contained in:
parent
4e7063ffde
commit
9e368bd5c6
|
@ -66,8 +66,8 @@ public class ProcessHelper {
|
|||
pb.directory(workingDirectory);
|
||||
|
||||
long start = System.nanoTime();
|
||||
logger.info(MessageFormat.format("Starting command (Timeout {0}m) {1}", unit.toMinutes(timeout),
|
||||
Arrays.stream(commandAndArgs).collect(Collectors.joining(" "))));
|
||||
logger.info(MessageFormat.format("Starting command (Timeout {0} {1}) {2}", unit.toMinutes(timeout),
|
||||
unit.name(), Arrays.stream(commandAndArgs).collect(Collectors.joining(" "))));
|
||||
final Process process = pb.start();
|
||||
int[] returnValue = new int[1];
|
||||
|
||||
|
|
Loading…
Reference in New Issue