diff options
author | ulfjack <ulfjack@google.com> | 2017-10-02 10:05:01 +0200 |
---|---|---|
committer | Klaus Aehlig <aehlig@google.com> | 2017-10-02 10:32:02 +0200 |
commit | f9a1f6f121a87478b5180ec5c9d01ec6d327b54c (patch) | |
tree | 5ba833117d83eb73fce5b2d0fb3f7d947b962b60 /src/main/java/com/google/devtools/build/lib/analysis/LocationExpander.java | |
parent | 06feddcd3e56ae31cb3eaa8ce648b5c4f3da399c (diff) |
Make JavaToolchain use the new Expander API
Progress on #2475.
PiperOrigin-RevId: 170671644
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/LocationExpander.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/analysis/LocationExpander.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/LocationExpander.java b/src/main/java/com/google/devtools/build/lib/analysis/LocationExpander.java index 9d3fa1d127..46c1493b07 100644 --- a/src/main/java/com/google/devtools/build/lib/analysis/LocationExpander.java +++ b/src/main/java/com/google/devtools/build/lib/analysis/LocationExpander.java @@ -95,6 +95,21 @@ public class LocationExpander { } /** + * Creates location expander helper bound to specific target and with default location map. + * + * @param ruleContext BUILD rule + * @param labelMap A mapping of labels to build artifacts. + * @param options the list of options, see {@link Options} + */ + public LocationExpander( + RuleContext ruleContext, ImmutableMap<Label, ImmutableCollection<Artifact>> labelMap, + Options... options) { + this.ruleContext = ruleContext; + this.options = ImmutableSet.copyOf(options); + this.labelMap = labelMap; + } + + /** * Creates location expander helper bound to specific target. * * @param ruleContext the BUILD rule's context |