public class FileExecutor extends Object
| Constructor and Description |
|---|
FileExecutor()
Constructs a new executor.
|
FileExecutor(Collection<ExecutableFile> files)
Constructs a new executor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
executeCommand(String[] params,
String[] output)
Executed a system command and waits for completion.
|
int |
executeCommand(String[] params,
String[] output,
String dir)
Executed a system command and waits for completion.
|
int |
executeFiles(int currentStage,
PlatformModelMatcher matcher,
AbstractUIHandler handler)
Executes files specified at construction time.
|
static String |
getExecOutput(String[] aCommandLine)
Gets the output of the given (console based) commandline
|
static String |
getExecOutput(String[] aCommandLine,
boolean forceToGetStdOut)
Gets the output of the given (console based) commandline
|
static String |
getExecOutput(String[] aCommandLine,
String dir)
Gets the output of the given (console based) commandline
|
public FileExecutor(Collection<ExecutableFile> files)
files - the executable files to processpublic FileExecutor()
public static String getExecOutput(String[] aCommandLine)
aCommandLine - to executepublic static String getExecOutput(String[] aCommandLine, String dir)
aCommandLine - to executedir - the working directory for the executionpublic static String getExecOutput(String[] aCommandLine, boolean forceToGetStdOut)
aCommandLine - to executeforceToGetStdOut - if true returns stdoutpublic int executeCommand(String[] params, String[] output)
params - system command as string arrayoutput - contains output of the command index 0 = standard output index 1 = standard
errorpublic int executeCommand(String[] params, String[] output, String dir)
params - system command as string arrayoutput - contains output of the command index 0 = standard output index 1 = standard
errordir - the working directory for the executionpublic int executeFiles(int currentStage,
PlatformModelMatcher matcher,
AbstractUIHandler handler)
currentStage - the stage of the installationmatcher - the platform-model matcherhandler - The AbstractUIHandler to notify on errors.Copyright © 2001–2025. All rights reserved.