Class ModernBuildRuleBuilderFactory
- java.lang.Object
-
- com.facebook.buck.rules.modern.builders.ModernBuildRuleBuilderFactory
-
public class ModernBuildRuleBuilderFactory extends Object
Constructs various BuildRuleStrategies for ModernBuildRules based on the modern_build_rule.strategy config option.
-
-
Constructor Summary
Constructors Constructor Description ModernBuildRuleBuilderFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BuildRuleStrategy
createPassthrough()
The passthrough strategy just forwards to executorRunner.runWithDefaultExecutor.static BuildRuleStrategy
createReconstructing(SourcePathRuleFinder ruleFinder, CellPathResolver cellResolver, Cell rootCell)
The reconstructing strategy serializes and deserializes the build rule in memory and builds the deserialized version.static Optional<BuildRuleStrategy>
getBuildStrategy(ModernBuildRuleStrategyConfig config, RemoteExecutionConfig remoteExecutionConfig, BuildRuleResolver resolver, Cell rootCell, CellPathResolver cellResolver, FileHashLoader hashLoader, BuckEventBus eventBus, MetadataProvider metadataProvider, boolean remoteExecutionAutoEnabled, boolean forceDisableRemoteExecution)
Creates a BuildRuleStrategy for ModernBuildRules based on the buck configuration.
-
-
-
Method Detail
-
getBuildStrategy
public static Optional<BuildRuleStrategy> getBuildStrategy(ModernBuildRuleStrategyConfig config, RemoteExecutionConfig remoteExecutionConfig, BuildRuleResolver resolver, Cell rootCell, CellPathResolver cellResolver, FileHashLoader hashLoader, BuckEventBus eventBus, MetadataProvider metadataProvider, boolean remoteExecutionAutoEnabled, boolean forceDisableRemoteExecution)
Creates a BuildRuleStrategy for ModernBuildRules based on the buck configuration.
-
createPassthrough
public static BuildRuleStrategy createPassthrough()
The passthrough strategy just forwards to executorRunner.runWithDefaultExecutor.
-
createReconstructing
public static BuildRuleStrategy createReconstructing(SourcePathRuleFinder ruleFinder, CellPathResolver cellResolver, Cell rootCell)
The reconstructing strategy serializes and deserializes the build rule in memory and builds the deserialized version.
-
-