public class WriteAction extends AbstractAction
inputs, outputs, owner| Constructor and Description |
|---|
WriteAction(ActionRegistry actionRegistry,
com.google.common.collect.ImmutableSortedSet<Artifact> inputs,
com.google.common.collect.ImmutableSortedSet<OutputArtifact> outputs,
CommandLineArgs contents,
boolean isExecutable)
Create an instance of
WriteAction |
WriteAction(ActionRegistry actionRegistry,
com.google.common.collect.ImmutableSortedSet<Artifact> inputs,
com.google.common.collect.ImmutableSortedSet<OutputArtifact> outputs,
String contents,
boolean isExecutable)
Create an instance of
WriteAction |
| Modifier and Type | Method and Description |
|---|---|
ActionExecutionResult |
execute(ActionExecutionContext executionContext)
Executes this action as part of the build
|
boolean |
isCacheable()
TODO(bobyf): should we still have this or should we enforce everything to be cacheable
|
getBuildTarget, getDependencies, getID, getInputs, getOutputs, getOwner, getShortName, getSourcePathOutputsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitoutputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecutionpublic WriteAction(ActionRegistry actionRegistry, com.google.common.collect.ImmutableSortedSet<Artifact> inputs, com.google.common.collect.ImmutableSortedSet<OutputArtifact> outputs, String contents, boolean isExecutable)
WriteActionactionRegistry - the DefaultActionRegistry to register this actioninputs - the input Artifact for this Action. They can be either outputs of
other Actions or be source filesoutputs - the outputs for this Actioncontents - the contents to writeisExecutable - whether the output is executablepublic WriteAction(ActionRegistry actionRegistry, com.google.common.collect.ImmutableSortedSet<Artifact> inputs, com.google.common.collect.ImmutableSortedSet<OutputArtifact> outputs, CommandLineArgs contents, boolean isExecutable)
WriteActionactionRegistry - the DefaultActionRegistry to register this actioninputs - the input Artifact for this Action. They can be either outputs of
other Actions or be source filesoutputs - the outputs for this Actioncontents - the contents to writeisExecutable - whether the output is executablepublic ActionExecutionResult execute(ActionExecutionContext executionContext)
ActionexecutionContext - a set of information the action can use for executionActionExecutionResult indicating the status of execution