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

Unified Diff: utils/pub/pub.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/oauth2.dart ('k') | utils/pub/sdk.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/pub.dart
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart
index a8371633fe4faa186f29fc8349174352a3a337e9..569c63c00e5fe351c5dcf4d2e8d9532dc4fdfe8a 100644
--- a/utils/pub/pub.dart
+++ b/utils/pub/pub.dart
@@ -6,12 +6,12 @@
library pub;
import 'dart:async';
-import '../../pkg/args/lib/args.dart';
-import '../../pkg/path/lib/path.dart' as path;
import 'dart:io';
import 'dart:math';
-import 'http.dart';
-import 'io.dart';
+
+import '../../pkg/args/lib/args.dart';
+import '../../pkg/path/lib/path.dart' as path;
+
import 'command_help.dart';
import 'command_install.dart';
import 'command_lish.dart';
@@ -20,6 +20,8 @@ import 'command_uploader.dart';
import 'command_version.dart';
import 'entrypoint.dart';
import 'exit_codes.dart' as exit_codes;
+import 'http.dart';
+import 'io.dart';
import 'log.dart' as log;
import 'package.dart';
import 'pubspec.dart';
@@ -116,7 +118,7 @@ main() {
cacheDir = Platform.environment['PUB_CACHE'];
} else if (Platform.operatingSystem == 'windows') {
var appData = Platform.environment['APPDATA'];
- cacheDir = join(appData, 'Pub', 'Cache');
+ cacheDir = path.join(appData, 'Pub', 'Cache');
} else {
cacheDir = '${Platform.environment['HOME']}/.pub-cache';
}
« no previous file with comments | « utils/pub/oauth2.dart ('k') | utils/pub/sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698