diff options
author | 2017-06-27 14:38:45 +0200 | |
---|---|---|
committer | 2017-06-27 15:06:32 +0200 | |
commit | 2e84e7ccba814253bf1402242c2ba6dab9293c6e (patch) | |
tree | 09594e73f3dcf1218194cdebba86f3114be7fd09 /src/main/java/com/google/devtools/build/lib/actions | |
parent | c5ddd422180b85e44a39bb7f7b6119be6a44918b (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.java | 4 |
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> { |