aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/ProjectFile.java7
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/commands/ProjectFileSupport.java2
2 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/ProjectFile.java b/src/main/java/com/google/devtools/build/lib/runtime/ProjectFile.java
index 30760ecd1d..793bf4751e 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/ProjectFile.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/ProjectFile.java
@@ -17,6 +17,7 @@ package com.google.devtools.build.lib.runtime;
import com.google.devtools.build.lib.vfs.Path;
import com.google.devtools.build.lib.vfs.PathFragment;
import com.google.devtools.build.lib.vfs.Root;
+import com.google.devtools.common.options.OptionsParser;
import com.google.devtools.common.options.OptionsParsingException;
import java.util.List;
@@ -39,7 +40,11 @@ public interface ProjectFile {
* Returns an (optionally cached) project file instance. If there is no such file, or if the
* file cannot be parsed, then it throws an exception.
*/
- ProjectFile getProjectFile(Path workingDirectory, List<Root> packagePath, PathFragment path)
+ ProjectFile getProjectFile(
+ Path workingDirectory,
+ List<Root> packagePath,
+ PathFragment path,
+ OptionsParser optionsParser)
throws OptionsParsingException;
}
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/ProjectFileSupport.java b/src/main/java/com/google/devtools/build/lib/runtime/commands/ProjectFileSupport.java
index a14ff5a23c..d4d54b7f6a 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/commands/ProjectFileSupport.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/ProjectFileSupport.java
@@ -74,7 +74,7 @@ public final class ProjectFileSupport {
BazelSkyframeExecutorConstants.BUILD_FILES_BY_PRIORITY)
.getPathEntries();
ProjectFile projectFile = projectFileProvider.getProjectFile(
- workingDir, packagePath, projectFilePath);
+ workingDir, packagePath, projectFilePath, optionsParser);
eventHandler.handle(Event.info("Using " + projectFile.getName()));
optionsParser.parse(