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, getSourcePathOutputs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution
public WriteAction(ActionRegistry actionRegistry, com.google.common.collect.ImmutableSortedSet<Artifact> inputs, com.google.common.collect.ImmutableSortedSet<OutputArtifact> outputs, String contents, boolean isExecutable)
WriteAction
actionRegistry
- the DefaultActionRegistry
to register this actioninputs
- the input Artifact
for this Action
. They can be either outputs of
other Action
s or be source filesoutputs
- the outputs for this Action
contents
- 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)
WriteAction
actionRegistry
- the DefaultActionRegistry
to register this actioninputs
- the input Artifact
for this Action
. They can be either outputs of
other Action
s or be source filesoutputs
- the outputs for this Action
contents
- the contents to writeisExecutable
- whether the output is executablepublic ActionExecutionResult execute(ActionExecutionContext executionContext)
Action
executionContext
- a set of information the action can use for executionActionExecutionResult
indicating the status of execution