| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // TODO(ager): The only reason for this class is that we | 5 // TODO(ager): The only reason for this class is that we |
| 6 // cannot patch a top-level at this point. | 6 // cannot patch a top-level at this point. |
| 7 class _ProcessUtils { | 7 class _ProcessUtils { |
| 8 external static _exit(int status); | 8 external static _exit(int status); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 */ | 141 */ |
| 142 String workingDirectory; | 142 String workingDirectory; |
| 143 | 143 |
| 144 /** | 144 /** |
| 145 * The encoding used for text on stdout when starting a | 145 * The encoding used for text on stdout when starting a |
| 146 * non-interactive process with [:Process.run:]. | 146 * non-interactive process with [:Process.run:]. |
| 147 * | 147 * |
| 148 * This option is ignored for interactive processes started with | 148 * This option is ignored for interactive processes started with |
| 149 * [:Process.start:]. | 149 * [:Process.start:]. |
| 150 * | 150 * |
| 151 * The default stdoutEncoding is UTF_8. | 151 * The default stdoutEncoding is SYSTEM. |
| 152 */ | 152 */ |
| 153 Encoding stdoutEncoding; | 153 Encoding stdoutEncoding; |
| 154 | 154 |
| 155 /** | 155 /** |
| 156 * The encoding used for text on stderr when starting a | 156 * The encoding used for text on stderr when starting a |
| 157 * non-interactive process with [:Process.run:]. | 157 * non-interactive process with [:Process.run:]. |
| 158 * | 158 * |
| 159 * This option is ignored for interactive processes started with | 159 * This option is ignored for interactive processes started with |
| 160 * [:Process.start:]. | 160 * [:Process.start:]. |
| 161 * | 161 * |
| 162 * The default stderrEncoding is UTF_8. | 162 * The default stderrEncoding is SYSTEM. |
| 163 */ | 163 */ |
| 164 Encoding stderrEncoding; | 164 Encoding stderrEncoding; |
| 165 | 165 |
| 166 /** | 166 /** |
| 167 * Provides the environment variables for the process. If not set | 167 * Provides the environment variables for the process. If not set |
| 168 * the environment of the parent process is inherited. | 168 * the environment of the parent process is inherited. |
| 169 * | 169 * |
| 170 * Currently, only ASCII environment variables are supported and | 170 * Currently, only ASCII environment variables are supported and |
| 171 * errors are likely to occur if an environment variables with | 171 * errors are likely to occur if an environment variables with |
| 172 * code-points outside the ASCII range is passed in. | 172 * code-points outside the ASCII range is passed in. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 /** | 237 /** |
| 238 * Contains the system message for the process exception if any. | 238 * Contains the system message for the process exception if any. |
| 239 */ | 239 */ |
| 240 final String message; | 240 final String message; |
| 241 | 241 |
| 242 /** | 242 /** |
| 243 * Contains the OS error code for the process exception if any. | 243 * Contains the OS error code for the process exception if any. |
| 244 */ | 244 */ |
| 245 final int errorCode; | 245 final int errorCode; |
| 246 } | 246 } |
| OLD | NEW |