diff options
author | 2015-10-16 14:10:16 +0000 | |
---|---|---|
committer | 2015-10-16 15:16:18 +0000 | |
commit | 26ac1f51215edffa87f8c139cd2f56bd499dbff0 (patch) | |
tree | 6475f08983a7e8a7ec7d54642385efe2e2495bfd /src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java | |
parent | 5afe76c3cb20c542f51613c5db1a7840700d116d (diff) |
[]Rollback of commit 65425810207c9fd6892abfaa95da65e25db5e515.
*** Reason for rollback ***
Breaks [].
*** Original change description ***
Change the resource dependency handling to separate between the transitive and direct resources from libraries.
This slightly increases the complexity of resource propagation. The initial algorithm was to simply merge all transitive ResourceContainers together with any new ResourceContainer and propagate them via the AndroidResourcesProvider. The new algorithm is encapsulated inside a new ResourceDependencies class which works as follows:
1. Collect resources from the deps into transitive and...
***
--
MOS_MIGRATED_REVID=105598448
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java | 24 |
1 files changed, 0 insertions, 24 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 584944f0e9..8eed18804e 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 @@ -129,22 +129,6 @@ public final class CustomCommandLine extends CommandLine { } } - private static final class JoinStringsArg extends ArgvFragment { - - private final String delimiter; - private final Iterable<String> strings; - - private JoinStringsArg(String delimiter, Iterable<String> strings) { - this.delimiter = delimiter; - this.strings = CollectionUtils.makeImmutable(strings); - } - - @Override - void eval(ImmutableList.Builder<String> builder) { - builder.add(Joiner.on(delimiter).join(strings)); - } - } - /** * Arguments that intersperse strings between the items in a sequence. There are two forms of * interspersing, and either may be used by this implementation: @@ -277,14 +261,6 @@ public final class CustomCommandLine extends CommandLine { return this; } - public Builder addJoinStrings(String arg, String delimiter, Iterable<String> strings) { - if (arg != null && strings != null) { - arguments.add(new ObjectArg(arg)); - arguments.add(new JoinStringsArg(delimiter, strings)); - } - return this; - } - public Builder addJoinExecPaths(String arg, String delimiter, Iterable<Artifact> artifacts) { if (arg != null && artifacts != null) { arguments.add(new ObjectArg(arg)); |