public class ModernBuildRuleBuilderFactory extends Object
Constructor and Description |
---|
ModernBuildRuleBuilderFactory() |
Modifier and Type | Method and 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.
|
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)
public static BuildRuleStrategy createPassthrough()
public static BuildRuleStrategy createReconstructing(SourcePathRuleFinder ruleFinder, CellPathResolver cellResolver, Cell rootCell)