Package com.github.gastaldi.git
Class ExecutionHelper
java.lang.Object
com.github.gastaldi.git.ExecutionHelper
public class ExecutionHelper
extends java.lang.Object
- Author:
- Lukas Zaruba, lukas.zaruba@lundegaard.eu, 2019
-
Method Summary
Modifier and Type Method Description static voidexecuteCommand(java.nio.file.Path pwd, java.lang.String... command)Executes given command in pwd and waits for result IO is inherited from this process
-
Method Details
-
executeCommand
public static void executeCommand(java.nio.file.Path pwd, java.lang.String... command) throws java.io.IOExceptionExecutes given command in pwd and waits for result IO is inherited from this process- Throws:
java.io.IOException- when interruptedjava.lang.RuntimeException- when process finishes with status other than 0
-