public class ProcessHelper extends Object
| Constructor and Description |
|---|
ProcessHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
doRunCommand(ProcessBuilder builder,
String[] commands) |
protected static String |
loadFile(File file) |
static void |
logOutput(Configuration configuration,
org.slf4j.Logger log,
File file,
boolean error) |
protected static void |
logOutput(Configuration configuration,
org.slf4j.Logger log,
String output,
boolean error) |
static void |
logOutput(File file,
boolean error) |
protected static void |
logOutput(String output,
boolean error) |
static int |
runCommand(File dir,
boolean inheritIO,
String... commands) |
static int |
runCommand(File dir,
File outputFile,
File errorFile,
String... commands) |
static int |
runCommand(File dir,
String... commands) |
static boolean |
runCommandAndLogOutput(Configuration configuration,
org.slf4j.Logger log,
File dir,
String... commands) |
static boolean |
runCommandAndLogOutput(File dir,
String... commands) |
static String |
runCommandCaptureOutput(File dir,
String... commands) |
static int |
runCommandIgnoreOutput(File dir,
String... commands) |
public static String runCommandCaptureOutput(File dir, String... commands) throws IOException
IOExceptionpublic static int runCommand(File dir, File outputFile, File errorFile, String... commands)
protected static int doRunCommand(ProcessBuilder builder, String[] commands)
public static boolean runCommandAndLogOutput(Configuration configuration, org.slf4j.Logger log, File dir, String... commands)
public static void logOutput(Configuration configuration, org.slf4j.Logger log, File file, boolean error)
public static void logOutput(File file, boolean error)
protected static void logOutput(String output, boolean error)
protected static void logOutput(Configuration configuration, org.slf4j.Logger log, String output, boolean error)
Copyright © 2076–2017 Red Hat. All rights reserved.