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:
Paul Berry 2016-09-23 05:12:42 -07:00
parent 3d533a08f2
commit 5d1dcde18c

View file

@ -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;
}