public static interface NativeGitProvider.ProcessRunner
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
run(java.io.File directory,
long nativeGitTimeoutInMs,
java.lang.String command)
Run a command and return the entire output as a String - naive, we know.
|
boolean |
runEmpty(java.io.File directory,
long nativeGitTimeoutInMs,
java.lang.String command)
Run a command and return false if it contains at least one output line
|
java.lang.String run(java.io.File directory,
long nativeGitTimeoutInMs,
java.lang.String command)
throws java.io.IOException
directory - the directory where the command should be executed innativeGitTimeoutInMs - the timeout in milliseconds before the command get's terminatedcommand - the command to executejava.io.IOException - the command execution failedboolean runEmpty(java.io.File directory,
long nativeGitTimeoutInMs,
java.lang.String command)
throws java.io.IOException
directory - the directory where the command should be executed innativeGitTimeoutInMs - the timeout in milliseconds before the command get's terminatedcommand - the command to executejava.io.IOException - the command execution failedCopyright © 2020. All Rights Reserved.