RFR: 8132541 : (process) ProcessBuilder support for redirection to discard output
martinrb at google.com
Mon Sep 21 18:18:01 UTC 2015
Thanks, I think this will be a popular feature, but...
I'm not sure that all operating systems where Java may run will have such a
"null file" (does OS400?).
If you're sure there is such a "null file", maybe there should be one or
two methods added to File to return the null output and input files.
Speaking of which, one might expect an analogue for "null input", giving
you nothing but EOF, as with "command < /dev/null". You wouldn't want to
call it DISCARD, though.
If you added File.nullSink(), you could then do a
On Mon, Sep 21, 2015 at 10:47 AM, Roger Riggs <Roger.Riggs at oracle.com>
> Can a Reviewer take a look and comment?
> Thanks, Roger
> On 09/11/2015 01:11 PM, Remi Forax wrote:
>> Great !,
>> minor comments,
>> nullFile should be NULL_FILE and @since 9 -> @since 1.9
>> ----- Mail original -----
>>> De: "Roger Riggs" <Roger.Riggs at Oracle.com>
>>> À: "Core-Libs-Dev" <core-libs-dev at openjdk.java.net>
>>> Envoyé: Vendredi 11 Septembre 2015 17:30:06
>>> Objet: RFR: 8132541 : (process) ProcessBuilder support for redirection
>>> to discard output
>>> Please review a proposed  ProcessBuilder addition to define a
>>> Redirect that will discard output.
>>> The implementation is to redirect output to /dev/null or NUL on Windows.
>>> Please review and comment if there are any unexpected side effects.
>>> Thanks, Roger
More information about the core-libs-dev