public class SkylarkRuleContextActions extends Object implements SkylarkRuleContextActionsApi
Constructor and Description |
---|
SkylarkRuleContextActions(ActionRegistry registry) |
Modifier and Type | Method and Description |
---|---|
CommandLineArgsBuilderApi |
args(Object args,
String formatString,
com.google.devtools.build.lib.events.Location location) |
Artifact |
copyFile(Artifact src,
Object dest,
com.google.devtools.build.lib.events.Location location) |
Artifact |
declareFile(String path,
com.google.devtools.build.lib.events.Location location) |
void |
run(com.google.devtools.build.lib.syntax.SkylarkList<Object> arguments,
Object shortName,
Object userEnv,
com.google.devtools.build.lib.events.Location location) |
Artifact |
write(Object output,
Object content,
boolean isExecutable,
com.google.devtools.build.lib.events.Location location) |
public SkylarkRuleContextActions(ActionRegistry registry)
public Artifact declareFile(String path, com.google.devtools.build.lib.events.Location location) throws com.google.devtools.build.lib.syntax.EvalException
declareFile
in interface SkylarkRuleContextActionsApi
com.google.devtools.build.lib.syntax.EvalException
public Artifact copyFile(Artifact src, Object dest, com.google.devtools.build.lib.events.Location location) throws com.google.devtools.build.lib.syntax.EvalException
copyFile
in interface SkylarkRuleContextActionsApi
com.google.devtools.build.lib.syntax.EvalException
public Artifact write(Object output, Object content, boolean isExecutable, com.google.devtools.build.lib.events.Location location) throws com.google.devtools.build.lib.syntax.EvalException
write
in interface SkylarkRuleContextActionsApi
com.google.devtools.build.lib.syntax.EvalException
public CommandLineArgsBuilderApi args(Object args, String formatString, com.google.devtools.build.lib.events.Location location) throws com.google.devtools.build.lib.syntax.EvalException
args
in interface SkylarkRuleContextActionsApi
com.google.devtools.build.lib.syntax.EvalException
public void run(com.google.devtools.build.lib.syntax.SkylarkList<Object> arguments, Object shortName, Object userEnv, com.google.devtools.build.lib.events.Location location) throws com.google.devtools.build.lib.syntax.EvalException
run
in interface SkylarkRuleContextActionsApi
com.google.devtools.build.lib.syntax.EvalException