diff options
author | Lukacs Berki <lberki@google.com> | 2015-09-18 11:40:12 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2015-09-21 08:56:51 +0000 |
commit | ffa73addaf80ab7a9cf9f98e5d4414b152ae6cb6 (patch) | |
tree | f498621bb8634d934815dbaddf90400eda0ce28d /src/main/java/com/google/devtools/build/lib/analysis/LocationExpander.java | |
parent | 29ad862a5bd45d2fdbb921f36bbb95816cf47acc (diff) |
Separate build-specific types and types inherent to Skylark.
--
MOS_MIGRATED_REVID=103374106
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 | 10 |
1 files changed, 5 insertions, 5 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 26b0f8c513..50ea1df4d6 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 @@ -24,8 +24,8 @@ import com.google.common.collect.Sets; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.analysis.RuleConfiguredTarget.Mode; import com.google.devtools.build.lib.cmdline.LabelSyntaxException; +import com.google.devtools.build.lib.packages.BuildType; import com.google.devtools.build.lib.packages.OutputFile; -import com.google.devtools.build.lib.packages.Type; import com.google.devtools.build.lib.syntax.Label; import com.google.devtools.build.lib.vfs.PathFragment; @@ -280,7 +280,7 @@ public class LocationExpander { mapGet(locationMap, out.getLabel()).add(ruleContext.createOutputArtifact(out)); } - if (ruleContext.getRule().isAttrDefined("srcs", Type.LABEL_LIST)) { + if (ruleContext.getRule().isAttrDefined("srcs", BuildType.LABEL_LIST)) { for (FileProvider src : ruleContext .getPrerequisites("srcs", Mode.TARGET, FileProvider.class)) { Iterables.addAll(mapGet(locationMap, src.getLabel()), src.getFilesToBuild()); @@ -289,16 +289,16 @@ public class LocationExpander { // Add all locations associated with dependencies and tools List<FilesToRunProvider> depsDataAndTools = new ArrayList<>(); - if (ruleContext.getRule().isAttrDefined("deps", Type.LABEL_LIST)) { + if (ruleContext.getRule().isAttrDefined("deps", BuildType.LABEL_LIST)) { Iterables.addAll(depsDataAndTools, ruleContext.getPrerequisites("deps", Mode.DONT_CHECK, FilesToRunProvider.class)); } if (allowDataAttributeEntriesInLabel - && ruleContext.getRule().isAttrDefined("data", Type.LABEL_LIST)) { + && ruleContext.getRule().isAttrDefined("data", BuildType.LABEL_LIST)) { Iterables.addAll(depsDataAndTools, ruleContext.getPrerequisites("data", Mode.DATA, FilesToRunProvider.class)); } - if (ruleContext.getRule().isAttrDefined("tools", Type.LABEL_LIST)) { + if (ruleContext.getRule().isAttrDefined("tools", BuildType.LABEL_LIST)) { Iterables.addAll(depsDataAndTools, ruleContext.getPrerequisites("tools", Mode.HOST, FilesToRunProvider.class)); } |