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