OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.executable; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 import 'dart:io'; | 6 import 'dart:io'; |
9 | 7 |
10 import 'package:barback/barback.dart'; | 8 import 'package:barback/barback.dart'; |
11 import 'package:path/path.dart' as p; | 9 import 'package:path/path.dart' as p; |
12 | 10 |
13 import 'barback/asset_environment.dart'; | 11 import 'barback/asset_environment.dart'; |
14 import 'entrypoint.dart'; | 12 import 'entrypoint.dart'; |
15 import 'exit_codes.dart' as exit_codes; | 13 import 'exit_codes.dart' as exit_codes; |
16 import 'io.dart'; | 14 import 'io.dart'; |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 Future<int> _runCachedExecutable(Entrypoint entrypoint, String snapshotPath, | 285 Future<int> _runCachedExecutable(Entrypoint entrypoint, String snapshotPath, |
288 List<String> args, {bool checked: false}) { | 286 List<String> args, {bool checked: false}) { |
289 return runSnapshot(snapshotPath, args, | 287 return runSnapshot(snapshotPath, args, |
290 packagesFile: entrypoint.packagesFile, | 288 packagesFile: entrypoint.packagesFile, |
291 checked: checked, | 289 checked: checked, |
292 recompile: () { | 290 recompile: () { |
293 log.fine("Precompiled executable is out of date."); | 291 log.fine("Precompiled executable is out of date."); |
294 return entrypoint.precompileExecutables(); | 292 return entrypoint.precompileExecutables(); |
295 }); | 293 }); |
296 } | 294 } |
OLD | NEW |