public class ExecUtil extends Object
| Constructor and Description |
|---|
ExecUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
exec(File directory,
Function<InputStream,Runnable> outputFilterFunction,
String command,
String... args)
Execute the specified command from within the specified directory.
|
static boolean |
exec(File directory,
String command,
String... args)
Execute the specified command from within the specified directory.
|
static boolean |
exec(String command,
String... args)
Execute the specified command from within the current directory.
|
static boolean |
execSilent(File directory,
String command,
String... args)
Execute the specified command from within the specified directory and hide the output.
|
static boolean |
execSilent(String command,
String... args)
Execute the specified command from within the current directory and hide the output.
|
public static boolean exec(String command, String... args)
command - The commandargs - The command argumentspublic static boolean execSilent(String command, String... args)
command - The commandargs - The command argumentspublic static boolean exec(File directory, String command, String... args)
directory - The directorycommand - The commandargs - The command argumentspublic static boolean execSilent(File directory, String command, String... args)
directory - The directorycommand - The commandargs - The command argumentspublic static boolean exec(File directory, Function<InputStream,Runnable> outputFilterFunction, String command, String... args)
directory - The directoryoutputFilterFunction - A Function that gets an InputStream and returns an outputFilter.command - The commandargs - The command argumentsCopyright © 2020 JBoss by Red Hat. All rights reserved.