OLD | NEW |
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 pub.package; | 5 library pub.package; |
6 | 6 |
7 import 'dart:async'; | |
8 | |
9 import 'package:path/path.dart' as path; | 7 import 'package:path/path.dart' as path; |
10 | 8 |
11 import 'io.dart'; | 9 import 'io.dart'; |
12 import 'pubspec.dart'; | 10 import 'pubspec.dart'; |
13 import 'source_registry.dart'; | 11 import 'source_registry.dart'; |
14 import 'utils.dart'; | 12 import 'utils.dart'; |
15 import 'version.dart'; | 13 import 'version.dart'; |
16 | 14 |
17 final _README_REGEXP = new RegExp(r"^README($|\.)", caseSensitive: false); | 15 final _README_REGEXP = new RegExp(r"^README($|\.)", caseSensitive: false); |
18 | 16 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 class PubspecNameMismatchException extends ApplicationException { | 211 class PubspecNameMismatchException extends ApplicationException { |
214 final String expectedName; | 212 final String expectedName; |
215 final String actualName; | 213 final String actualName; |
216 | 214 |
217 PubspecNameMismatchException(String expectedName, String actualName) | 215 PubspecNameMismatchException(String expectedName, String actualName) |
218 : expectedName = expectedName, | 216 : expectedName = expectedName, |
219 actualName = actualName, | 217 actualName = actualName, |
220 super('The name you specified for your dependency, "$expectedName", ' | 218 super('The name you specified for your dependency, "$expectedName", ' |
221 'doesn\'t match the name "$actualName" in its pubspec.'); | 219 'doesn\'t match the name "$actualName" in its pubspec.'); |
222 } | 220 } |
OLD | NEW |