Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 interface Process default _Process { | 5 interface Process default _Process { |
| 6 /** | 6 /** |
| 7 * Creates a new process object and starts a process running the executable | 7 * Creates a new process object and starts a process running the executable |
| 8 * found at [path] with the specified [arguments]. When the process has | 8 * found at [path] with the specified [arguments]. When the process has |
| 9 * been successfully started the [startHandler] is called. If the process | 9 * been successfully started the [startHandler] is called. If the process |
| 10 * fails to start the [errorHandler] is called. | 10 * fails to start the [errorHandler] is called. An optional |
| 11 * [workingDirectory] can be passed to specify where the process is run | |
| 12 * from. | |
|
Søren Gjesse
2012/01/05 09:30:47
I think there should be some additional info on th
Anders Johnsen
2012/01/05 09:50:49
Nice observation, added further comments.
| |
| 11 * | 13 * |
| 12 * No data can be written to the process stdin and the process cannot be | 14 * No data can be written to the process stdin and the process cannot be |
| 13 * closed nor killed before the [startHandler] has been invoked. | 15 * closed nor killed before the [startHandler] has been invoked. |
| 14 */ | 16 */ |
| 15 Process.start(String path, List<String> arguments); | 17 Process.start(String path, List<String> arguments, [String workingDirectory]); |
|
Søren Gjesse
2012/01/05 09:30:47
Maybe we should rename path to executable.
Anders Johnsen
2012/01/05 09:50:49
Agreed.
| |
| 16 | 18 |
| 17 /** | 19 /** |
| 18 * Returns an input stream of the process stdout. | 20 * Returns an input stream of the process stdout. |
| 19 */ | 21 */ |
| 20 InputStream get stdout(); | 22 InputStream get stdout(); |
| 21 | 23 |
| 22 /** | 24 /** |
| 23 * Returns an input stream of the process stderr. | 25 * Returns an input stream of the process stderr. |
| 24 */ | 26 */ |
| 25 InputStream get stderr(); | 27 InputStream get stderr(); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 /** | 73 /** |
| 72 * Contains the system message for the process exception if any. | 74 * Contains the system message for the process exception if any. |
| 73 */ | 75 */ |
| 74 final String message; | 76 final String message; |
| 75 | 77 |
| 76 /** | 78 /** |
| 77 * Contains the OS error code for the process exception if any. | 79 * Contains the OS error code for the process exception if any. |
| 78 */ | 80 */ |
| 79 final int errorCode; | 81 final int errorCode; |
| 80 } | 82 } |
| OLD | NEW |