RFR 8142927: Feed some text to STDIN in ProcessTools.executeProcess()
Wang Weijun
weijun.wang at oracle.com
Fri Nov 13 08:21:48 UTC 2015
Hi All
8142927: Feed some text to STDIN in ProcessTools.executeProcess()
http://cr.openjdk.java.net/~weijun/8142927/webrev.00/
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?
Thanks
Max
More information about the core-libs-dev
mailing list