public final class ProcessUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
createTarPackage(java.lang.String packageName,
java.lang.String outputName,
java.lang.String targetFolder,
boolean isVerbose,
boolean isInheritIO) |
static boolean |
curlPackage(java.lang.String uri,
java.lang.String destination,
boolean isVerbose,
boolean isInheritIO) |
static boolean |
extractPackage(java.lang.String packageName,
java.lang.String targetFolder,
boolean isVerbose,
boolean isInheritIO) |
static boolean |
extractPackageWithoutDir(java.lang.String packageName,
java.lang.String targetFolder,
boolean isVerbose,
boolean isInheritIO) |
protected static java.lang.ProcessBuilder |
getProcessBuilder(boolean isInheritIO,
java.lang.String[] command,
java.io.File workingDirectory,
java.util.Map<java.lang.String,java.lang.String> envs) |
static java.lang.Process |
runASyncProcess(boolean verbose,
java.lang.String[] command,
java.io.File workingDirectory) |
static java.lang.Process |
runASyncProcess(boolean verbose,
java.lang.String[] command,
java.io.File workingDirectory,
java.util.Map<java.lang.String,java.lang.String> envs) |
static java.lang.Process |
runASyncProcess(java.lang.String command) |
static java.lang.Process |
runASyncProcess(java.lang.String[] command,
java.io.File workingDirectory,
java.lang.String logFileUuid) |
static int |
runProcess(java.lang.String cmdline,
java.lang.StringBuilder outputBuilder,
boolean isVerbose) |
static int |
runSyncProcess(boolean isInheritIO,
java.lang.String[] cmdline,
java.lang.StringBuilder outputBuilder,
java.io.File workingDirectory,
boolean isVerbose) |
protected static java.lang.String[] |
splitTokens(java.lang.String command) |
protected static java.lang.ProcessBuilder getProcessBuilder(boolean isInheritIO, java.lang.String[] command, java.io.File workingDirectory, java.util.Map<java.lang.String,java.lang.String> envs)
public static int runProcess(java.lang.String cmdline, java.lang.StringBuilder outputBuilder, boolean isVerbose)
public static int runSyncProcess(boolean isInheritIO, java.lang.String[] cmdline, java.lang.StringBuilder outputBuilder, java.io.File workingDirectory, boolean isVerbose)
public static java.lang.Process runASyncProcess(java.lang.String[] command, java.io.File workingDirectory, java.lang.String logFileUuid)
public static java.lang.Process runASyncProcess(boolean verbose, java.lang.String[] command, java.io.File workingDirectory)
public static java.lang.Process runASyncProcess(boolean verbose, java.lang.String[] command, java.io.File workingDirectory, java.util.Map<java.lang.String,java.lang.String> envs)
public static java.lang.Process runASyncProcess(java.lang.String command)
public static boolean curlPackage(java.lang.String uri, java.lang.String destination, boolean isVerbose, boolean isInheritIO)
public static boolean extractPackage(java.lang.String packageName, java.lang.String targetFolder, boolean isVerbose, boolean isInheritIO)
public static boolean extractPackageWithoutDir(java.lang.String packageName, java.lang.String targetFolder, boolean isVerbose, boolean isInheritIO)
public static boolean createTarPackage(java.lang.String packageName, java.lang.String outputName, java.lang.String targetFolder, boolean isVerbose, boolean isInheritIO)
protected static java.lang.String[] splitTokens(java.lang.String command)