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

Unified Diff: sdk/lib/io/platform.dart

Issue 1180623006: Revert change to Platform.excutable and add Platform.resolvedExecutable (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated dart2js io_patch.dart Created 5 years, 6 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
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/io_patch.dart ('k') | sdk/lib/io/platform_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/platform.dart
diff --git a/sdk/lib/io/platform.dart b/sdk/lib/io/platform.dart
index 6b86095d06158b3c459cdb68da2421cd4b09c666..9ad7b5668a7055a6e831431b8607c57a50e2d2ac 100644
--- a/sdk/lib/io/platform.dart
+++ b/sdk/lib/io/platform.dart
@@ -131,14 +131,25 @@ class Platform {
* Returns the path of the executable used to run the script in this
* isolate.
*
- * If supported by the platform the returned path will be absolute.
+ * The path returned is the literal path used to run the script. This
+ * path might be relative or just be a name from which the executable
+ * was found by searching the `PATH`.
*
- * If the execution environment does not support [executable] an empty
- * string is returned.
+ * To get the absolute path to the resolved executable use
+ * [resolvedExecutable].
*/
static String get executable => _Platform.executable;
/**
+ * Returns the path of the executable used to run the script in this
+ * isolate after it has been resolved by the OS.
+ *
+ * This is the absolute path, with all symlinks resolved, to the
+ * executable used to run the script.
+ */
+ static String get resolvedExecutable => _Platform.resolvedExecutable;
+
+ /**
* Returns the absolute URI of the script being run in this
* isolate.
*
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/io_patch.dart ('k') | sdk/lib/io/platform_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698