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

Side by Side Diff: utils/pub/package.dart

Issue 11475046: Add Bob's path library to pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 library package; 5 library package;
6 6
7 import 'io.dart'; 7 import 'io.dart';
8 import 'path.dart' as path;
Bob Nystrom 2012/12/08 03:36:53 Is this being used here?
nweiz 2012/12/08 03:43:45 Nope, removed.
8 import 'pubspec.dart'; 9 import 'pubspec.dart';
9 import 'source.dart'; 10 import 'source.dart';
10 import 'source_registry.dart'; 11 import 'source_registry.dart';
11 import 'version.dart'; 12 import 'version.dart';
12 13
13 /** 14 /**
14 * A named, versioned, unit of code and resource reuse. 15 * A named, versioned, unit of code and resource reuse.
15 */ 16 */
16 class Package { 17 class Package {
17 /** 18 /**
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 222
222 class PubspecNameMismatchException implements Exception { 223 class PubspecNameMismatchException implements Exception {
223 final String expectedName; 224 final String expectedName;
224 final String actualName; 225 final String actualName;
225 226
226 PubspecNameMismatchException(this.expectedName, this.actualName); 227 PubspecNameMismatchException(this.expectedName, this.actualName);
227 228
228 String toString() => 'The name you specified for your dependency, ' 229 String toString() => 'The name you specified for your dependency, '
229 '"$expectedName", doesn\'t match the name "$actualName" in its pubspec.'; 230 '"$expectedName", doesn\'t match the name "$actualName" in its pubspec.';
230 } 231 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698