Class CopyAction
- java.lang.Object
-
- com.facebook.buck.core.rules.actions.AbstractAction
-
- com.facebook.buck.core.rules.actions.lib.CopyAction
-
- All Implemented Interfaces:
BuildEngineAction
,Action
public class CopyAction extends AbstractAction
-
-
Field Summary
-
Fields inherited from class com.facebook.buck.core.rules.actions.AbstractAction
inputs, outputs, owner
-
-
Constructor Summary
Constructors Constructor Description CopyAction(ActionRegistry actionRegistry, Artifact input, OutputArtifact output, CopySourceMode mode)
Create an instance ofCopyAction
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionExecutionResult
execute(ActionExecutionContext executionContext)
Executes this action as part of the buildboolean
isCacheable()
TODO(bobyf): should we still have this or should we enforce everything to be cacheable-
Methods inherited from class com.facebook.buck.core.rules.actions.AbstractAction
getBuildTarget, getDependencies, getID, getInputs, getOutputs, getOwner, getShortName, getSourcePathOutputs
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.facebook.buck.core.rules.actions.Action
outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution
-
-
-
-
Constructor Detail
-
CopyAction
public CopyAction(ActionRegistry actionRegistry, Artifact input, OutputArtifact output, CopySourceMode mode)
Create an instance ofCopyAction
- Parameters:
actionRegistry
- theDefaultActionRegistry
to register this actioninput
- the inputArtifact
for thisAction
. This is the file to be copiedoutput
- the outputs for thisAction
. This is the copy destinationmode
- theCopySourceMode
as needed by the filesystem
-
-
Method Detail
-
execute
public ActionExecutionResult execute(ActionExecutionContext executionContext)
Description copied from interface:Action
Executes this action as part of the build- Parameters:
executionContext
- a set of information the action can use for execution- Returns:
ActionExecutionResult
indicating the status of execution
-
-