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

Unified Diff: utils/pub/sdk.dart

Issue 12253054: Get rid of join() and encapsulate File and Directory in io.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 7 years, 10 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 | « utils/pub/pub.dart ('k') | utils/pub/sdk_source.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/sdk.dart
diff --git a/utils/pub/sdk.dart b/utils/pub/sdk.dart
index 98007b5a40cea7fa6ff2cb2ac2c1cc89711ee5e1..1db2a04b9da276a33d12d834566ab06072b6c72b 100644
--- a/utils/pub/sdk.dart
+++ b/utils/pub/sdk.dart
@@ -8,6 +8,8 @@ library sdk;
import 'dart:io';
import '../../pkg/path/lib/path.dart' as path;
+
+import 'io.dart';
import 'log.dart' as log;
import 'version.dart';
@@ -38,7 +40,7 @@ Version version = _getVersion();
/// Determine the SDK's version number.
Version _getVersion() {
var revisionPath = path.join(rootDirectory, "version");
- var version = new File(revisionPath).readAsStringSync().trim();
+ var version = readTextFile(revisionPath).trim();
// Given a version file like: 0.1.2.0_r17495
// We create a semver like: 0.1.2+0.r17495
« no previous file with comments | « utils/pub/pub.dart ('k') | utils/pub/sdk_source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698