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
Redirect.to(File.nullSink())


On Mon, Sep 21, 2015 at 10:47 AM, Roger Riggs <roger.ri...@oracle.com>
wrote:

> Ping?
>
> Can a Reviewer take a look and comment?
>
> Webrev:
>    http://cr.openjdk.java.net/~rriggs/webrev-8132541-discard/
>
>
> 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
>>
>> regards,
>> Rémi
>>
>> ----- Mail original -----
>>
>>> De: "Roger Riggs" <roger.ri...@oracle.com>
>>> À: "Core-Libs-Dev" <core-libs-dev@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 [1] 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.
>>>
>>> Webrev:
>>>     http://cr.openjdk.java.net/~rriggs/webrev-8132541-discard/
>>>
>>> Issue:
>>>     https://bugs.openjdk.java.net/browse/JDK-8132541
>>>
>>> Thanks, Roger
>>>
>>> [1]
>>>
>>> http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-July/034639.html
>>>
>>>
>

Reply via email to