Move project resolution from BuildView to BuildTool.
Reasons:
- `BuildView` is for analysis. Projects store data that's used for analysis but
also other purposes.
- Flag sets use projects to change top-level build options. We want to push
that as soon as possible after those build options are first created.
- Skymeld (merged analysis+execution) and normal analysis are the two
consumers of flag set-based build options. We want this accessible to both.
PiperOrigin-RevId: 619283982
Change-Id: I916c9c6dba19abed91fdee5ae784bf9a6b7aeaaf
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/Project.java b/src/main/java/com/google/devtools/build/lib/analysis/Project.java
index e549243..19fecbf 100644
--- a/src/main/java/com/google/devtools/build/lib/analysis/Project.java
+++ b/src/main/java/com/google/devtools/build/lib/analysis/Project.java
@@ -64,7 +64,7 @@
private Project() {}
/** Thrown when project data can't be read. */
- static class ProjectParseException extends Exception {
+ public static class ProjectParseException extends Exception {
ProjectParseException(String msg, Throwable cause) {
super(msg, cause);
}