public class DefaultToolchainProvider extends BaseToolchainProvider
Constructor and Description |
---|
DefaultToolchainProvider(org.pf4j.PluginManager pluginManager,
com.google.common.collect.ImmutableMap<String,String> environment,
BuckConfig buckConfig,
ProjectFilesystem projectFilesystem,
ProcessExecutor processExecutor,
ExecutableFinder executableFinder,
RuleKeyConfiguration ruleKeyConfiguration) |
Modifier and Type | Method and Description |
---|---|
Toolchain |
getByName(String toolchainName,
TargetConfiguration toolchainTargetConfiguration) |
Optional<ToolchainInstantiationException> |
getToolchainInstantiationException(String toolchainName,
TargetConfiguration toolchainTargetConfiguration) |
<T extends ToolchainWithCapability> |
getToolchainsWithCapability(Class<T> capability)
Provides access to all known toolchains that support the provided capability.
|
boolean |
isToolchainCreated(String toolchainName,
TargetConfiguration toolchainTargetConfiguration) |
boolean |
isToolchainFailed(String toolchainName,
TargetConfiguration toolchainTargetConfiguration) |
boolean |
isToolchainPresent(String toolchainName,
TargetConfiguration toolchainTargetConfiguration) |
getByName, getByNameIfPresent
public DefaultToolchainProvider(org.pf4j.PluginManager pluginManager, com.google.common.collect.ImmutableMap<String,String> environment, BuckConfig buckConfig, ProjectFilesystem projectFilesystem, ProcessExecutor processExecutor, ExecutableFinder executableFinder, RuleKeyConfiguration ruleKeyConfiguration)
public Toolchain getByName(String toolchainName, TargetConfiguration toolchainTargetConfiguration)
public boolean isToolchainPresent(String toolchainName, TargetConfiguration toolchainTargetConfiguration)
true
if toolchain exists (triggering instantiation if needed)public boolean isToolchainCreated(String toolchainName, TargetConfiguration toolchainTargetConfiguration)
true
if toolchain has already been created (without triggering
instantiation)public boolean isToolchainFailed(String toolchainName, TargetConfiguration toolchainTargetConfiguration)
true
if toolchain failed to instantiate (without triggering instantiation)public <T extends ToolchainWithCapability> Collection<String> getToolchainsWithCapability(Class<T> capability)
ToolchainProvider
The toolchains are not created during the execution of this method.
public Optional<ToolchainInstantiationException> getToolchainInstantiationException(String toolchainName, TargetConfiguration toolchainTargetConfiguration)