diff options
author | tomlu <tomlu@google.com> | 2018-03-01 17:16:23 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-01 17:18:38 -0800 |
commit | b85365174c20c2616d85507e31e3b2422e0cbf48 (patch) | |
tree | 99f30073e4f44467db8a83e293a075fa3cf24d8a /src/main/java/com/google/devtools/build/lib/analysis/actions | |
parent | f090082d62c3ea779d2dd33eb0fd7355b0ee9456 (diff) |
Make JavaCompileAction and friends emit new-style arguments.
Instead of --direct_dependency, --indirect_dependency args we now emit --direct_dependencies. We no longer need to emit any jar owner information since that is baked into the jar by JavaBuilder.
This CL also contains the deletion of CustomMultiArgv and the injecting_rule_kind aspect parameter, as the deleted code was the last remaining usage.
RELNOTES: None
PiperOrigin-RevId: 187558628
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/actions')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java b/src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java index e90f856709..8e999b5518 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java @@ -102,25 +102,6 @@ public final class CustomCommandLine extends CommandLine { abstract void addToFingerprint(ActionKeyContext actionKeyContext, Fingerprint fingerprint); } - /** Deprecated. Do not use. TODO(b/64841073): Remove this */ - @Deprecated - public abstract static class CustomMultiArgv extends StandardArgvFragment { - - @Override - void eval(ImmutableList.Builder<String> builder) { - builder.addAll(argv()); - } - - public abstract Iterable<String> argv(); - - @Override - final void addToFingerprint(ActionKeyContext actionKeyContext, Fingerprint fingerprint) { - for (String arg : argv()) { - fingerprint.addString(arg); - } - } - } - /** * An ArgvFragment that expands a collection of objects in a user-specified way. * @@ -1014,13 +995,6 @@ public final class CustomCommandLine extends CommandLine { return addVectorArgInternal(arg, vectorArg); } - public Builder addCustomMultiArgv(@Nullable CustomMultiArgv arg) { - if (arg != null) { - arguments.add(arg); - } - return this; - } - /** * Adds a placeholder TreeArtifact exec path. When the command line is used in an action * template, the placeholder will be replaced by the exec path of a {@link TreeFileArtifact} |