public class ExecutableFinder extends Object
Constructor and Description |
---|
ExecutableFinder() |
ExecutableFinder(Platform platform) |
Modifier and Type | Method and Description |
---|---|
Path |
getExecutable(Path suggestedExecutable,
com.google.common.collect.ImmutableMap<String,String> env) |
static com.google.common.collect.ImmutableSet<String> |
getExecutableSuffixes(Platform platform,
com.google.common.collect.ImmutableMap<String,String> env) |
Optional<Path> |
getOptionalExecutable(Path suggestedExecutable,
com.google.common.collect.ImmutableCollection<Path> path,
com.google.common.collect.ImmutableCollection<String> fileSuffixes) |
Optional<Path> |
getOptionalExecutable(Path suggestedExecutable,
com.google.common.collect.ImmutableMap<String,String> env) |
Optional<Path> |
getOptionalExecutable(Path suggestedExecutable,
Path basePath) |
Optional<Path> |
getOptionalToolPath(String tool,
com.google.common.collect.ImmutableList<Path> toolSearchPaths) |
static boolean |
isExecutable(Path exe) |
public ExecutableFinder()
public ExecutableFinder(Platform platform)
public Path getExecutable(Path suggestedExecutable, com.google.common.collect.ImmutableMap<String,String> env)
public Optional<Path> getOptionalExecutable(Path suggestedExecutable, com.google.common.collect.ImmutableMap<String,String> env)
public Optional<Path> getOptionalExecutable(Path suggestedExecutable, Path basePath)
public Optional<Path> getOptionalExecutable(Path suggestedExecutable, com.google.common.collect.ImmutableCollection<Path> path, com.google.common.collect.ImmutableCollection<String> fileSuffixes)
public static boolean isExecutable(Path exe)
public static com.google.common.collect.ImmutableSet<String> getExecutableSuffixes(Platform platform, com.google.common.collect.ImmutableMap<String,String> env)