[Minor] Added a timeout in ProcessHelper

This commit is contained in:
Robert von Burg 2015-12-04 18:21:41 +01:00
parent 4e7063ffde
commit 9e368bd5c6
1 changed files with 2 additions and 2 deletions

View File

@ -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];