Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: groovy-jdk
-
Labels:None
-
Number of attachments :
Description
Process has a method named consumeProcessOutput() which consumes output and error streams together but there are no methods to consume them together. In writing a script I need the output stream but want to ignore the error stream. I propose that two new methods are added: consumeProcessOutputStream() and consumeProcessErrorStream(). There are already methods with these names just none without parameters.
These are easy enough to add I guess but you can just call them with null to achieve the same thing. So normally you would do:
Using the waitFor variant does more resource cleanup for you.