protected static class NativeGitProvider.JavaProcessRunner extends java.lang.Object implements NativeGitProvider.ProcessRunner
| Modifier | Constructor and Description |
|---|---|
protected |
JavaProcessRunner() |
| 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
|
public java.lang.String run(java.io.File directory,
long nativeGitTimeoutInMs,
java.lang.String command)
throws java.io.IOException
NativeGitProvider.ProcessRunnerrun in interface NativeGitProvider.ProcessRunnerdirectory - 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 failedpublic boolean runEmpty(java.io.File directory,
long nativeGitTimeoutInMs,
java.lang.String command)
throws java.io.IOException
NativeGitProvider.ProcessRunnerrunEmpty in interface NativeGitProvider.ProcessRunnerdirectory - 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.