You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unless an explicit handler for standard error stream has been specified, the ProcessExecutor by default redirects standard error stream into the standard output stream and returns the merged result as "output".
Maybe should replace the second line with "Returning the output as UTF-8 String (empty in this case as the version is printed to stderr)". Would this be enough?
In the following example, the console gets all the output, but the
String output
value remains empty:Output:
Without
redirectError
, theString output
gets the output value:Output:
openjdk version "1.8.0_292" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10) OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.292-b10, mixed mode)
Questions:
redirectError
work just in case of errors?String output
get the output value withredirectError
in place?The text was updated successfully, but these errors were encountered: