diff options
author | 2015-02-24 10:28:26 +0000 | |
---|---|---|
committer | 2015-02-24 10:28:26 +0000 | |
commit | 3f4d4e971e67dfd0956e408afb7b61352edb9827 (patch) | |
tree | 359e682d26faa268471b65947c47d647fcaafe75 /src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java | |
parent | ff031541d2e2da9175a3d8176aaa386d8f69c9b4 (diff) |
Remove FilesToCompileProvider and CompilationPrerequisitesProvider and replace them with output groups.
--
MOS_MIGRATED_REVID=87038548
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/TopLevelArtifactContext.java | 28 |
1 files changed, 5 insertions, 23 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 85cd1a15f4..d4c1061298 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 @@ -27,24 +27,18 @@ import java.util.Set; public final class TopLevelArtifactContext { public static final TopLevelArtifactContext DEFAULT = new TopLevelArtifactContext( - "", /*compileOnly=*/false, /*compilationPrerequisitesOnly*/false, - /*buildDefaultArtifacts=*/true, /*runTestsExclusively=*/false, + "", /*buildDefaultArtifacts=*/true, /*runTestsExclusively=*/false, /*outputGroups=*/ImmutableSet.<String>of(), /*shouldRunTests=*/false); private final String buildCommand; - private final boolean compileOnly; - private final boolean compilationPrerequisitesOnly; private final boolean buildDefaultArtifacts; private final boolean runTestsExclusively; private final ImmutableSet<String> outputGroups; private final boolean shouldRunTests; - public TopLevelArtifactContext(String buildCommand, boolean compileOnly, - boolean compilationPrerequisitesOnly, boolean filesToRun, boolean runTestsExclusively, - ImmutableSet<String> outputGroups, boolean shouldRunTests) { + public TopLevelArtifactContext(String buildCommand, boolean filesToRun, + boolean runTestsExclusively, ImmutableSet<String> outputGroups, boolean shouldRunTests) { this.buildCommand = buildCommand; - this.compileOnly = compileOnly; - this.compilationPrerequisitesOnly = compilationPrerequisitesOnly; this.buildDefaultArtifacts = filesToRun; this.runTestsExclusively = runTestsExclusively; this.outputGroups = outputGroups; @@ -56,16 +50,6 @@ public final class TopLevelArtifactContext { return buildCommand; } - /** Returns the value of the --compile_only flag. */ - public boolean compileOnly() { - return compileOnly; - } - - /** Returns the value of the --compilation_prerequisites_only flag. */ - public boolean compilationPrerequisitesOnly() { - return compilationPrerequisitesOnly; - } - /** Returns the value of the (undocumented) --build_default_artifacts flag. */ public boolean buildDefaultArtifacts() { return buildDefaultArtifacts; @@ -93,8 +77,6 @@ public final class TopLevelArtifactContext { if (other instanceof TopLevelArtifactContext) { TopLevelArtifactContext otherContext = (TopLevelArtifactContext) other; return buildCommand.equals(otherContext.buildCommand) - && compileOnly == otherContext.compileOnly - && compilationPrerequisitesOnly == otherContext.compilationPrerequisitesOnly && buildDefaultArtifacts == otherContext.buildDefaultArtifacts && runTestsExclusively == otherContext.runTestsExclusively && outputGroups.equals(otherContext.outputGroups) @@ -106,7 +88,7 @@ public final class TopLevelArtifactContext { @Override public int hashCode() { - return Objects.hash(buildCommand, compileOnly, compilationPrerequisitesOnly, - buildDefaultArtifacts, runTestsExclusively, outputGroups, shouldRunTests); + return Objects.hash( + buildCommand, buildDefaultArtifacts, runTestsExclusively, outputGroups, shouldRunTests); } } |