aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/analysis
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis')
-rw-r--r--src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java b/src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java
index 6f8c6dba95..85cd1a15f4 100644
--- a/src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java
+++ b/src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java
@@ -34,7 +34,7 @@ public final class TopLevelArtifactContext {
private final String buildCommand;
private final boolean compileOnly;
private final boolean compilationPrerequisitesOnly;
- private final boolean filesToRun;
+ private final boolean buildDefaultArtifacts;
private final boolean runTestsExclusively;
private final ImmutableSet<String> outputGroups;
private final boolean shouldRunTests;
@@ -45,7 +45,7 @@ public final class TopLevelArtifactContext {
this.buildCommand = buildCommand;
this.compileOnly = compileOnly;
this.compilationPrerequisitesOnly = compilationPrerequisitesOnly;
- this.filesToRun = filesToRun;
+ this.buildDefaultArtifacts = filesToRun;
this.runTestsExclusively = runTestsExclusively;
this.outputGroups = outputGroups;
this.shouldRunTests = shouldRunTests;
@@ -68,7 +68,7 @@ public final class TopLevelArtifactContext {
/** Returns the value of the (undocumented) --build_default_artifacts flag. */
public boolean buildDefaultArtifacts() {
- return filesToRun;
+ return buildDefaultArtifacts;
}
/** Whether to run tests in exclusive mode. */
@@ -95,6 +95,7 @@ public final class TopLevelArtifactContext {
return buildCommand.equals(otherContext.buildCommand)
&& compileOnly == otherContext.compileOnly
&& compilationPrerequisitesOnly == otherContext.compilationPrerequisitesOnly
+ && buildDefaultArtifacts == otherContext.buildDefaultArtifacts
&& runTestsExclusively == otherContext.runTestsExclusively
&& outputGroups.equals(otherContext.outputGroups)
&& shouldRunTests == otherContext.shouldRunTests;
@@ -106,6 +107,6 @@ public final class TopLevelArtifactContext {
@Override
public int hashCode() {
return Objects.hash(buildCommand, compileOnly, compilationPrerequisitesOnly,
- runTestsExclusively, outputGroups, shouldRunTests);
+ buildDefaultArtifacts, runTestsExclusively, outputGroups, shouldRunTests);
}
}