OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 /// Pub-specific scheduled_test descriptors. | 5 /// Pub-specific scheduled_test descriptors. |
6 library descriptor; | 6 library descriptor; |
7 | 7 |
8 import "dart:io" show File; | |
9 | |
10 import 'package:oauth2/oauth2.dart' as oauth2; | 8 import 'package:oauth2/oauth2.dart' as oauth2; |
11 import 'package:path/path.dart' as p; | |
12 import 'package:pub/src/io.dart'; | 9 import 'package:pub/src/io.dart'; |
13 import 'package:pub/src/utils.dart'; | 10 import 'package:pub/src/utils.dart'; |
14 import 'package:scheduled_test/descriptor.dart'; | 11 import 'package:scheduled_test/descriptor.dart'; |
15 import 'package:scheduled_test/scheduled_server.dart'; | 12 import 'package:scheduled_test/scheduled_server.dart'; |
16 import 'package:package_config/packages_file.dart' as packages_file; | |
17 import 'package:stack_trace/stack_trace.dart'; | |
18 | 13 |
19 import 'descriptor/git.dart'; | 14 import 'descriptor/git.dart'; |
20 import 'descriptor/tar.dart'; | 15 import 'descriptor/tar.dart'; |
21 import 'descriptor/packages.dart'; | 16 import 'descriptor/packages.dart'; |
22 import 'test_pub.dart'; | 17 import 'test_pub.dart'; |
23 | 18 |
24 export 'package:scheduled_test/descriptor.dart'; | 19 export 'package:scheduled_test/descriptor.dart'; |
25 export 'descriptor/git.dart'; | 20 export 'descriptor/git.dart'; |
26 export 'descriptor/tar.dart'; | 21 export 'descriptor/tar.dart'; |
27 export 'descriptor/packages.dart'; | 22 export 'descriptor/packages.dart'; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 /// are located on disk. If the strings are semantic versions, then the packages | 191 /// are located on disk. If the strings are semantic versions, then the packages |
197 /// are located in the system cache; otherwise, the strings are interpreted as | 192 /// are located in the system cache; otherwise, the strings are interpreted as |
198 /// relative `file:` URLs. | 193 /// relative `file:` URLs. |
199 /// | 194 /// |
200 /// Validation checks that the `.packages` file exists, has the expected | 195 /// Validation checks that the `.packages` file exists, has the expected |
201 /// entries (one per key in [dependencies]), each with a path that contains | 196 /// entries (one per key in [dependencies]), each with a path that contains |
202 /// either the version string (for a reference to the pub cache) or a | 197 /// either the version string (for a reference to the pub cache) or a |
203 /// path to a path dependency, relative to the application directory. | 198 /// path to a path dependency, relative to the application directory. |
204 Descriptor packagesFile([Map dependencies]) => | 199 Descriptor packagesFile([Map dependencies]) => |
205 new PackagesFileDescriptor(dependencies); | 200 new PackagesFileDescriptor(dependencies); |
OLD | NEW |