public class RuleAnalysisLegacyBinaryBuildRuleView extends RuleAnalysisLegacyBuildRuleView implements BinaryBuildRule
RuleAnalysisLegacyBuildRuleView
, but also implements BinaryBuildRule
so that
this rule can be executable (with buck run
, in the legacy graph, etc)Constructor and Description |
---|
RuleAnalysisLegacyBinaryBuildRuleView(String type,
BuildTarget buildTarget,
Optional<Action> action,
BuildRuleResolver ruleResolver,
ProjectFilesystem projectFilesystem,
ProviderInfoCollection providerInfoCollection)
Create an instance of
RuleAnalysisLegacyBinaryBuildRuleView |
Modifier and Type | Method and Description |
---|---|
Tool |
getExecutableCommand(OutputLabel outputLabel)
Command to execute the output of this rule.
|
getBuildDeps, getBuildSteps, getOutputLabels, getProviderInfos, getSourcePathToOutput, getSourcePathToOutput, getType, isCacheable, updateBuildRuleResolver
equals, getBuildTarget, getDependencies, getProjectFilesystem, getSourcePathOutputs, hasBuildSteps, hashCode, injectFields, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getBuildDeps, getBuildSteps, getBuildTarget, getFullyQualifiedName, getProjectFilesystem, getSourcePathToOutput, hasBuildSteps, isCacheable, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution, toString, updateBuildRuleResolver
getDependencies, getSourcePathOutputs
getType
inputBasedRuleKeyIsEnabled, isSupported
public RuleAnalysisLegacyBinaryBuildRuleView(String type, BuildTarget buildTarget, Optional<Action> action, BuildRuleResolver ruleResolver, ProjectFilesystem projectFilesystem, ProviderInfoCollection providerInfoCollection)
RuleAnalysisLegacyBinaryBuildRuleView
type
- the type of this BuildRule
buildTarget
- the BuildTarget
of this analysis ruleaction
- the action of the result for which we want to provide the BuildRule
viewruleResolver
- the current BuildRuleResolver
to query dependent rulesprojectFilesystem
- the filesystemproviderInfoCollection
- the providers returned by this build targetIllegalStateException
- if providerInfoCollection
does not contain an instance of
RunInfo
public Tool getExecutableCommand(OutputLabel outputLabel)
BinaryBuildRule
getExecutableCommand
in interface BinaryBuildRule
outputLabel
- associated with the executable