java.lang.Object
org.eclipse.jgit.internal.diffmergetool.CommandExecutor
Runs a command with help of FS.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CommandExecutor
- Parameters:
fs
- the file systemcheckExitCode
- should the exit code be checked for errors ?
-
-
Method Details
-
run
public FS.ExecutionResult run(String command, File workingDir, Map<String, String> env) throws ToolException, IOException, InterruptedExceptionRun command- Parameters:
command
- the command stringworkingDir
- the working directoryenv
- the environment- Returns:
- the execution result
- Throws:
ToolException
- if a tool raised an errorInterruptedException
- if thread was interruptedIOException
- if an IO error occurred
-
checkExecutable
public boolean checkExecutable(String path, File workingDir, Map<String, String> env) throws ToolException, IOException, InterruptedExceptionCheck whether executable file is available- Parameters:
path
- the executable pathworkingDir
- the working directoryenv
- the environment- Returns:
- the execution result
- Throws:
ToolException
- if a tool raised an errorInterruptedException
- if thread was interruptedIOException
- if an IO error occurred
-