aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java
diff options
context:
space:
mode:
authorGravatar dslomov <dslomov@google.com>2017-07-03 09:43:58 -0400
committerGravatar John Cater <jcater@google.com>2017-07-05 10:56:44 -0400
commit68aafa23dc44dc54823477e2155b746a821c9c2b (patch)
tree34f3ac44e9bff2a03ae0228a57c9bf7900a81d8a /src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java
parent8b1281b180f637d4f35673f5cf9aa915b389d026 (diff)
Implement ctx.actions.expand_template.
It also changes the return value of ctx.template_action to None, so a very minor breaking change. There are no internal usages at least. RELNOTES: None. PiperOrigin-RevId: 160825636
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java b/src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java
index 4474a76cd3..26a68a5c7e 100644
--- a/src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java
+++ b/src/main/java/com/google/devtools/build/lib/actions/AbstractAction.java
@@ -580,8 +580,8 @@ public abstract class AbstractAction implements Action, SkylarkValue {
@SkylarkCallable(
name = "content",
doc = "For actions created by <a href=\"actions.html#write\">ctx.actions.write()</a> or "
- + "<a href=\"ctx.html#template_action\">ctx.template_action()</a>, the contents of the "
- + "file to be written.",
+ + "<a href=\"actions.html#expand_template\">ctx.actions.expand_template()</a>,"
+ + " the contents of the file to be written.",
structField = true,
allowReturnNones = true)
public String getSkylarkContent() throws IOException {
@@ -590,8 +590,9 @@ public abstract class AbstractAction implements Action, SkylarkValue {
@SkylarkCallable(
name = "substitutions",
- doc = "For actions created by <a href=\"ctx.html#template_action\">"
- + "ctx.template_action()</a>, an immutable dict holding the substitution mapping.",
+ doc = "For actions created by "
+ + "<a href=\"actions.html#expand_template\">ctx.actions.expand_template()</a>,"
+ + " an immutable dict holding the substitution mapping.",
structField = true,
allowReturnNones = true)
public SkylarkDict<String, String> getSkylarkSubstitutions() {