Package io.quarkus.deployment.util
Class ExecUtil
- java.lang.Object
-
- io.quarkus.deployment.util.ExecUtil
-
public class ExecUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description ExecUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanexec(File directory, String command, String... args)Execute the specified command from within the specified directory.static booleanexec(File directory, Function<InputStream,Runnable> outputFilterFunction, String command, String... args)Execute the specified command from within the specified directory.static booleanexec(String command, String... args)Execute the specified command from within the current directory.static booleanexecSilent(File directory, String command, String... args)Execute the specified command from within the specified directory and hide the output.static booleanexecSilent(String command, String... args)Execute the specified command from within the current directory and hide the output.
-
-
-
Method Detail
-
exec
public static boolean exec(String command, String... args)
Execute the specified command from within the current directory.- Parameters:
command- The commandargs- The command arguments- Returns:
- true if commands where executed successfully
-
execSilent
public static boolean execSilent(String command, String... args)
Execute the specified command from within the current directory and hide the output.- Parameters:
command- The commandargs- The command arguments- Returns:
- true if commands where executed successfully
-
exec
public static boolean exec(File directory, String command, String... args)
Execute the specified command from within the specified directory.- Parameters:
directory- The directorycommand- The commandargs- The command arguments- Returns:
- true if commands where executed successfully
-
execSilent
public static boolean execSilent(File directory, String command, String... args)
Execute the specified command from within the specified directory and hide the output.- Parameters:
directory- The directorycommand- The commandargs- The command arguments- Returns:
- true if commands where executed successfully
-
exec
public static boolean exec(File directory, Function<InputStream,Runnable> outputFilterFunction, String command, String... args)
Execute the specified command from within the specified directory. The method allows specifying an output filter that processes the command output.- Parameters:
directory- The directoryoutputFilterFunction- AFunctionthat gets anInputStreamand returns an outputFilter.command- The commandargs- The command arguments- Returns:
- true if commands where executed successfully
-
-