mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8303392: Runtime.exec and ProcessBuilder.start should use System logger
Reviewed-by: stuefe, alanb, mullan
This commit is contained in:
parent
be764a711c
commit
d063b8964f
6 changed files with 272 additions and 0 deletions
|
@ -349,6 +349,10 @@ public class Runtime {
|
|||
* @throws IllegalArgumentException
|
||||
* If {@code command} is empty
|
||||
*
|
||||
* @implNote
|
||||
* In the reference implementation, logging of the created process can be enabled,
|
||||
* see {@link ProcessBuilder#start()} for details.
|
||||
*
|
||||
* @see #exec(String[], String[], File)
|
||||
* @see ProcessBuilder
|
||||
*/
|
||||
|
@ -397,6 +401,10 @@ public class Runtime {
|
|||
* @throws IllegalArgumentException
|
||||
* If {@code command} is empty
|
||||
*
|
||||
* @implNote
|
||||
* In the reference implementation, logging of the created process can be enabled,
|
||||
* see {@link ProcessBuilder#start()} for details.
|
||||
*
|
||||
* @see #exec(String[], String[], File)
|
||||
* @see ProcessBuilder
|
||||
*/
|
||||
|
@ -458,6 +466,10 @@ public class Runtime {
|
|||
* @throws IllegalArgumentException
|
||||
* If {@code command} is empty
|
||||
*
|
||||
* @implNote
|
||||
* In the reference implementation, logging of the created process can be enabled,
|
||||
* see {@link ProcessBuilder#start()} for details.
|
||||
*
|
||||
* @see ProcessBuilder
|
||||
* @since 1.3
|
||||
*/
|
||||
|
@ -503,6 +515,10 @@ public class Runtime {
|
|||
* If {@code cmdarray} is an empty array
|
||||
* (has length {@code 0})
|
||||
*
|
||||
* @implNote
|
||||
* In the reference implementation, logging of the created process can be enabled,
|
||||
* see {@link ProcessBuilder#start()} for details.
|
||||
*
|
||||
* @see ProcessBuilder
|
||||
*/
|
||||
public Process exec(String[] cmdarray) throws IOException {
|
||||
|
@ -546,6 +562,10 @@ public class Runtime {
|
|||
* If {@code cmdarray} is an empty array
|
||||
* (has length {@code 0})
|
||||
*
|
||||
* @implNote
|
||||
* In the reference implementation, logging of the created process can be enabled,
|
||||
* see {@link ProcessBuilder#start()} for details.
|
||||
*
|
||||
* @see ProcessBuilder
|
||||
*/
|
||||
public Process exec(String[] cmdarray, String[] envp) throws IOException {
|
||||
|
@ -641,6 +661,10 @@ public class Runtime {
|
|||
* If {@code cmdarray} is an empty array
|
||||
* (has length {@code 0})
|
||||
*
|
||||
* @implNote
|
||||
* In the reference implementation, logging of the created process can be enabled,
|
||||
* see {@link ProcessBuilder#start()} for details.
|
||||
*
|
||||
* @see ProcessBuilder
|
||||
* @since 1.3
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue