mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 13:47:50 +00:00
Revert "Issue 27375. Use ContextBuilder to find analysis options file in analyzer_cli."
This broke the analyzer bots. See for example: https://build.chromium.org/p/client.dart/builders/analyzer_experimental-linux-release-be/builds/9135/steps/tests%20--host-checked%20--checked/logs/stdio
This reverts commit 75a4f968be
.
TBR=scheglov@google.com
Review URL: https://codereview.chromium.org/2366913002 .
This commit is contained in:
parent
3d533a08f2
commit
5d1dcde18c
|
@ -744,8 +744,12 @@ class Driver implements CommandLineStarter {
|
|||
exitCode: ErrorSeverity.ERROR.ordinal);
|
||||
}
|
||||
} else {
|
||||
return new ContextBuilder(resourceProvider, null, null)
|
||||
.getOptionsFile(options.sourceFiles.first);
|
||||
filePath = AnalysisEngine.ANALYSIS_OPTIONS_FILE;
|
||||
file = resourceProvider.getFile(filePath);
|
||||
if (!file.exists) {
|
||||
filePath = AnalysisEngine.ANALYSIS_OPTIONS_YAML_FILE;
|
||||
file = resourceProvider.getFile(filePath);
|
||||
}
|
||||
}
|
||||
return file;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue