From f94cfd397347b5dd6c5c85a0e69924f0bbe54910 Mon Sep 17 00:00:00 2001 From: Laurent Le Brun Date: Wed, 1 Apr 2015 14:06:13 +0000 Subject: Skylark: Mark ctx.target(s) as deprecated (use ctx.attr instead). -- MOS_MIGRATED_REVID=90061261 --- .../com/google/devtools/build/lib/rules/SkylarkRuleContext.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleContext.java') diff --git a/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleContext.java b/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleContext.java index 1b3ee1d140..5e63a5727d 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleContext.java +++ b/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleContext.java @@ -324,7 +324,8 @@ public final class SkylarkRuleContext { * See {@link RuleContext#getPrerequisite(String, Mode)}. */ @SkylarkCallable(name = "target", structField = true, - doc = "A struct containing prerequisite targets defined in label type " + doc = "Deprecated, use ctx.attr instead. " + + "A struct containing prerequisite targets defined in label type " + "attributes. The struct fields correspond to the attribute names. The struct value " + "is always a Target or None. " + "If an optional attribute is not specified in the rule, the corresponding struct " @@ -337,7 +338,8 @@ public final class SkylarkRuleContext { * See {@link RuleContext#getPrerequisites(String, Mode)}. */ @SkylarkCallable(name = "targets", structField = true, - doc = "A struct containing prerequisite targets defined in label or label list " + doc = "Deprecated, use ctx.attr instead. " + + "A struct containing prerequisite targets defined in label or label list " + "type attributes. The struct fields correspond to the attribute names. The struct " + "values are list of Targets. " + "If an optional attribute is not specified in the rule, an empty list is generated.") -- cgit v1.2.3