| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 analyzer_cli.src.driver; | 5 library analyzer_cli.src.driver; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 | 10 |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 fileSystem.File _getOptionsFile(CommandLineOptions options) { | 446 fileSystem.File _getOptionsFile(CommandLineOptions options) { |
| 447 fileSystem.File file; | 447 fileSystem.File file; |
| 448 String filePath = options.analysisOptionsFile; | 448 String filePath = options.analysisOptionsFile; |
| 449 if (filePath != null) { | 449 if (filePath != null) { |
| 450 file = PhysicalResourceProvider.INSTANCE.getFile(filePath); | 450 file = PhysicalResourceProvider.INSTANCE.getFile(filePath); |
| 451 if (!file.exists) { | 451 if (!file.exists) { |
| 452 printAndFail('Options file not found: $filePath', | 452 printAndFail('Options file not found: $filePath', |
| 453 exitCode: ErrorSeverity.ERROR.ordinal); | 453 exitCode: ErrorSeverity.ERROR.ordinal); |
| 454 } | 454 } |
| 455 } else { | 455 } else { |
| 456 filePath = AnalysisOptionsProvider.ANALYSIS_OPTIONS_NAME; | 456 filePath = AnalysisEngine.ANALYSIS_OPTIONS_FILE; |
| 457 file = PhysicalResourceProvider.INSTANCE.getFile(filePath); | 457 file = PhysicalResourceProvider.INSTANCE.getFile(filePath); |
| 458 } | 458 } |
| 459 return file; | 459 return file; |
| 460 } | 460 } |
| 461 | 461 |
| 462 Map<String, List<fileSystem.Folder>> _getPackageMap(Packages packages) { | 462 Map<String, List<fileSystem.Folder>> _getPackageMap(Packages packages) { |
| 463 if (packages == null) { | 463 if (packages == null) { |
| 464 return null; | 464 return null; |
| 465 } | 465 } |
| 466 | 466 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 for (var package in packages) { | 631 for (var package in packages) { |
| 632 var packageName = path.basename(package.path); | 632 var packageName = path.basename(package.path); |
| 633 var realPath = package.resolveSymbolicLinksSync(); | 633 var realPath = package.resolveSymbolicLinksSync(); |
| 634 result[packageName] = [ | 634 result[packageName] = [ |
| 635 PhysicalResourceProvider.INSTANCE.getFolder(realPath) | 635 PhysicalResourceProvider.INSTANCE.getFolder(realPath) |
| 636 ]; | 636 ]; |
| 637 } | 637 } |
| 638 return result; | 638 return result; |
| 639 } | 639 } |
| 640 } | 640 } |
| OLD | NEW |