[Minor] Added a timeout in ProcessHelper
This commit is contained in:
parent
3b4d9f3661
commit
4e7063ffde
|
@ -39,7 +39,7 @@ public class ProcessHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ProcessResult runCommand(File workingDirectory, String... commandAndArgs) {
|
public static ProcessResult runCommand(File workingDirectory, String... commandAndArgs) {
|
||||||
return runCommand(1, TimeUnit.MINUTES, workingDirectory, commandAndArgs);
|
return runCommand(30, TimeUnit.SECONDS, workingDirectory, commandAndArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ProcessResult runCommand(long timeout, TimeUnit unit, String... commandAndArgs) {
|
public static ProcessResult runCommand(long timeout, TimeUnit unit, String... commandAndArgs) {
|
||||||
|
|
Loading…
Reference in New Issue