RFR 8142927: Feed some text to STDIN in ProcessTools.executeProcess()
roger.riggs at oracle.com
Fri Nov 13 13:44:14 UTC 2015
It would be cleaner to create and use a PrintStream to send the bytes
to the process. We don't want to encourage the poor practice of using
Please also document that the exit status of the process is ignored.
On 11/13/15 3:21 AM, Wang Weijun wrote:
> Hi All
> 8142927: Feed some text to STDIN in ProcessTools.executeProcess()
> With this change, you can call
> ProcessTools.executeProcess(new ProcessBuilder("keytool -printcert", certInAscii)
> which means "echo $certInAscii | keytool -printcert".
> Not sure if there is already an existing way to do this easily. Or maybe someone might think byte is better.
> Do I need to write a test for testlibrary?
More information about the core-libs-dev