Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(602)

Unified Diff: runtime/bin/process.dart

Issue 9108008: Add optional workingDirectory argument to Process.start. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/bin/process.dart
===================================================================
--- runtime/bin/process.dart (revision 2981)
+++ runtime/bin/process.dart (working copy)
@@ -4,15 +4,22 @@
interface Process default _Process {
/**
- * Creates a new process object and starts a process running the executable
- * found at [path] with the specified [arguments]. When the process has
- * been successfully started the [startHandler] is called. If the process
- * fails to start the [errorHandler] is called.
+ * Creates a new process object and starts a process running the
+ * [executable] with the specified [arguments]. When the process has been
+ * successfully started the [startHandler] is called. If the process fails
+ * to start the [errorHandler] is called.
*
+ * An optional [workingDirectory] can be passed to specify where the process
+ * is run from. Note that the change of directory occurs before executing
+ * the process on some platforms, which may have impact when using relative
+ * paths for [executable] and [arguments].
+ *
* No data can be written to the process stdin and the process cannot be
* closed nor killed before the [startHandler] has been invoked.
*/
- Process.start(String path, List<String> arguments);
+ Process.start(String executable,
+ List<String> arguments,
+ [String workingDirectory]);
/**
* Returns an input stream of the process stdout.

Powered by Google App Engine
This is Rietveld 408576698