Package io.quarkus.deployment.util
Class ExecUtil
java.lang.Object
io.quarkus.deployment.util.ExecUtil
Deprecated, for removal: This API element is subject to removal in a future version.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated, for removal: This API element is subject to removal in a future version. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Function<InputStream, Runnable> Deprecated, for removal: This API element is subject to removal in a future version.static final Function<InputStream, Runnable> Deprecated, for removal: This API element is subject to removal in a future version.static final Function<InputStream, Runnable> Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionExecUtil()Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddestroyProcess(Process process) Deprecated, for removal: This API element is subject to removal in a future version.Kill the process, if still alive, kill it forciblystatic booleanDeprecated, for removal: This API element is subject to removal in a future version.Execute the specified command from within the specified directory.static booleanexec(File directory, Function<InputStream, Runnable> outputFilterFunction, String command, String... args) Deprecated, for removal: This API element is subject to removal in a future version.Execute the specified command from within the specified directory.static booleanDeprecated, for removal: This API element is subject to removal in a future version.Execute the specified command from within the current directory.static intexecProcess(Process process, Function<InputStream, Runnable> outputFilterFunction) Deprecated, for removal: This API element is subject to removal in a future version.static intexecProcessWithTimeout(Process process, Function<InputStream, Runnable> outputFilterFunction, Duration timeout) Deprecated, for removal: This API element is subject to removal in a future version.static booleanexecWithDebugLogging(File directory, String command, String... args) Deprecated, for removal: This API element is subject to removal in a future version.Execute the specified command from within the specified directory using debug logging.static booleanexecWithDebugLogging(String command, String... args) Deprecated, for removal: This API element is subject to removal in a future version.Execute the specified command from within the current directory using debug logging.static booleanexecWithSystemLogging(File directory, String command, String... args) Deprecated, for removal: This API element is subject to removal in a future version.Execute the specified command from within the specified directory using system logging.static booleanexecWithSystemLogging(String command, String... args) Deprecated, for removal: This API element is subject to removal in a future version.Execute the specified command from within the current directory using system logging.static booleanexecWithTimeout(File directory, Duration timeout, String command, String... args) Deprecated, for removal: This API element is subject to removal in a future version.Execute the specified command until the given timeout from within the specified directory.static booleanexecWithTimeout(File directory, Function<InputStream, Runnable> outputFilterFunction, Duration timeout, String command, String... args) Deprecated, for removal: This API element is subject to removal in a future version.Execute the specified command until the given timeout from within the specified directory.static booleanexecWithTimeout(Duration timeout, String command, String... args) Deprecated, for removal: This API element is subject to removal in a future version.Execute the specified command until the given timeout from within the current directory.static ProcessstartProcess(File directory, String command, String... args) Deprecated, for removal: This API element is subject to removal in a future version.Start a process executing given command with arguments within the specified directory.static ProcessDeprecated, for removal: This API element is subject to removal in a future version.Start a process executing given command with arguments within the specified directory.
-
Field Details
-
INFO_LOGGING
Deprecated, for removal: This API element is subject to removal in a future version. -
DEBUG_LOGGING
Deprecated, for removal: This API element is subject to removal in a future version. -
SYSTEM_LOGGING
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
ExecUtil
public ExecUtil()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
exec
Deprecated, for removal: This API element is subject to removal in a future version.Execute the specified command from within the current directory.- Parameters:
command- The commandargs- The command arguments- Returns:
- true if commands where executed successfully
-
execWithTimeout
Deprecated, for removal: This API element is subject to removal in a future version.Execute the specified command until the given timeout from within the current directory.- Parameters:
timeout- The timeoutcommand- The commandargs- The command arguments- Returns:
- true if commands where executed successfully
-
exec
Deprecated, for removal: This API element is subject to removal in a future version.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
-
execWithTimeout
public static boolean execWithTimeout(File directory, Duration timeout, String command, String... args) Deprecated, for removal: This API element is subject to removal in a future version.Execute the specified command until the given timeout from within the specified directory.- Parameters:
directory- The directorytimeout- The timeoutcommand- 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) Deprecated, for removal: This API element is subject to removal in a future version.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
-
execProcess
Deprecated, for removal: This API element is subject to removal in a future version. -
execProcessWithTimeout
public static int execProcessWithTimeout(Process process, Function<InputStream, Runnable> outputFilterFunction, Duration timeout) Deprecated, for removal: This API element is subject to removal in a future version. -
execWithTimeout
public static boolean execWithTimeout(File directory, Function<InputStream, Runnable> outputFilterFunction, Duration timeout, String command, String... args) Deprecated, for removal: This API element is subject to removal in a future version.Execute the specified command until the given timeout 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.timeout- The timeoutcommand- The commandargs- The command arguments- Returns:
- true if commands where executed successfully
-
execWithDebugLogging
Deprecated, for removal: This API element is subject to removal in a future version.Execute the specified command from within the current directory using debug logging.- Parameters:
command- The commandargs- The command arguments- Returns:
- true if commands where executed successfully
-
execWithDebugLogging
Deprecated, for removal: This API element is subject to removal in a future version.Execute the specified command from within the specified directory using debug logging.- Parameters:
directory- The directorycommand- The commandargs- The command arguments- Returns:
- true if commands where executed successfully
-
execWithSystemLogging
Deprecated, for removal: This API element is subject to removal in a future version.Execute the specified command from within the current directory using system logging.- Parameters:
command- The commandargs- The command arguments- Returns:
- true if commands where executed successfully
-
execWithSystemLogging
Deprecated, for removal: This API element is subject to removal in a future version.Execute the specified command from within the specified directory using system logging.- Parameters:
directory- The directorycommand- The commandargs- The command arguments- Returns:
- true if commands where executed successfully
-
startProcess
public static Process startProcess(File directory, Map<String, String> environment, String command, String... args) Deprecated, for removal: This API element is subject to removal in a future version.Start a process executing given command with arguments within the specified directory.- Parameters:
directory- The directoryenvironment- The command environmentcommand- The command and args- Returns:
- the process
-
startProcess
Deprecated, for removal: This API element is subject to removal in a future version.Start a process executing given command with arguments within the specified directory.- Parameters:
directory- The directorycommand- The commandargs- The command arguments- Returns:
- the process
-
destroyProcess
Deprecated, for removal: This API element is subject to removal in a future version.Kill the process, if still alive, kill it forcibly- Parameters:
process- the process to kill
-
smallrye-common-processAPI instead.