public abstract class SystemToolProvider extends Object implements ToolProvider, RuleAnalysisLegacyToolProvider
ToolProvider
which returns a HashedFileTool
found from searching the system.Constructor and Description |
---|
SystemToolProvider() |
Modifier and Type | Method and Description |
---|---|
Iterable<BuildTarget> |
getParseTimeDeps(TargetConfiguration targetConfiguration) |
RunInfo |
getRunInfo(DependencyOnlyRuleAnalysisContext context,
TargetConfiguration targetConfiguration) |
static SystemToolProvider |
of(ExecutableFinder executableFinder,
java.util.function.Function<Path,SourcePath> sourcePathConverter,
Path name,
Map<String,? extends String> environment) |
static SystemToolProvider |
of(ExecutableFinder executableFinder,
java.util.function.Function<Path,SourcePath> sourcePathConverter,
Path name,
Map<String,? extends String> environment,
Optional<String> source) |
Tool |
resolve() |
Tool |
resolve(BuildRuleResolver resolver,
TargetConfiguration targetConfiguration) |
@Value.Lazy public Tool resolve()
public Tool resolve(BuildRuleResolver resolver, TargetConfiguration targetConfiguration)
resolve
in interface ToolProvider
Tool
object.public RunInfo getRunInfo(DependencyOnlyRuleAnalysisContext context, TargetConfiguration targetConfiguration)
getRunInfo
in interface RuleAnalysisLegacyToolProvider
RunInfo
that will execute a given toolpublic Iterable<BuildTarget> getParseTimeDeps(TargetConfiguration targetConfiguration)
getParseTimeDeps
in interface ToolProvider
public static SystemToolProvider of(ExecutableFinder executableFinder, java.util.function.Function<Path,SourcePath> sourcePathConverter, Path name, Map<String,? extends String> environment, Optional<String> source)
public static SystemToolProvider of(ExecutableFinder executableFinder, java.util.function.Function<Path,SourcePath> sourcePathConverter, Path name, Map<String,? extends String> environment)