mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 13:11:39 +07:00
more useful methods
This commit is contained in:
@@ -57,15 +57,17 @@ public final class ScriptRunnerUtil {
|
||||
private ScriptRunnerUtil() {
|
||||
}
|
||||
|
||||
public static String getProcessOutput(@NotNull GeneralCommandLine commandLine,
|
||||
@NotNull Condition<Key> outputTypeFilter)
|
||||
public static String getProcessOutput(@NotNull GeneralCommandLine commandLine)
|
||||
throws ExecutionException {
|
||||
return getProcessOutput(commandLine, STDOUT_OUTPUT_KEY_FILTER);
|
||||
}
|
||||
|
||||
public static String getProcessOutput(@NotNull GeneralCommandLine commandLine, @NotNull Condition<Key> outputTypeFilter)
|
||||
throws ExecutionException {
|
||||
return getProcessOutput(commandLine, outputTypeFilter, DEFAULT_TIMEOUT);
|
||||
}
|
||||
|
||||
public static String getProcessOutput(@NotNull GeneralCommandLine commandLine,
|
||||
@NotNull Condition<Key> outputTypeFilter,
|
||||
long timeout)
|
||||
public static String getProcessOutput(@NotNull GeneralCommandLine commandLine, @NotNull Condition<Key> outputTypeFilter, long timeout)
|
||||
throws ExecutionException {
|
||||
return getProcessOutput(new OSProcessHandler(commandLine.createProcess(), commandLine.getCommandLineString()), outputTypeFilter,
|
||||
timeout);
|
||||
|
||||
Reference in New Issue
Block a user