aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/actions
diff options
context:
space:
mode:
authorGravatar dslomov <dslomov@google.com>2017-06-27 14:38:45 +0200
committerGravatar Marcel Hlopko <hlopko@google.com>2017-06-27 15:06:32 +0200
commit2e84e7ccba814253bf1402242c2ba6dab9293c6e (patch)
tree09594e73f3dcf1218194cdebba86f3114be7fd09 /src/main/java/com/google/devtools/build/lib/actions
parentc5ddd422180b85e44a39bb7f7b6119be6a44918b (diff)
Add 'ctx.actions' and implement 'ctx.action.declare_file'.
RELNOTES: None. PiperOrigin-RevId: 160264501
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/actions')
-rw-r--r--src/main/java/com/google/devtools/build/lib/actions/Artifact.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/actions/Artifact.java b/src/main/java/com/google/devtools/build/lib/actions/Artifact.java
index 74c7682f09..4a956db6aa 100644
--- a/src/main/java/com/google/devtools/build/lib/actions/Artifact.java
+++ b/src/main/java/com/google/devtools/build/lib/actions/Artifact.java
@@ -99,8 +99,8 @@ import javax.annotation.Nullable;
+ "Files. If you have a Skylark rule that needs to create a new File, you might need to "
+ "add the label to the attrs (if it's an input) or the outputs (if it's an output). Then "
+ "you can access the File through the rule's <a href='ctx.html'>context</a>. You can "
- + "also use <a href='ctx.html#new_file'>ctx.new_file</a> to create a new file in the rule "
- + "implementation.</p>")
+ + "also use <a href='actions.html#declare_file'>ctx.actions.declare_file</a> to "
+ + "declare a new file in the rule implementation.</p>")
public class Artifact
implements FileType.HasFilename, ActionInput, SkylarkValue, Comparable<Object> {