public class OcamlUtil extends Object
Modifier and Type | Method and Description |
---|---|
static java.util.function.Predicate<? super Path> |
ext(String... extensions)
Constructs a Predicate instance which returns true if the input argument ends with any String
in extensions
|
static com.google.common.collect.ImmutableList<String> |
makeArgFile(ProjectFilesystem filesystem,
Path argFile,
com.google.common.collect.ImmutableList<String> toolPrefix,
String flag,
Iterable<String> flagList)
Creates an arg file with a given list of flags
|
static Path |
makeArgFilePath(ProjectFilesystem filesystem,
BuildTarget buildTarget,
String prefix)
Creates a file path for an arg file
|
static Path |
makeLinkerArgFilePath(ProjectFilesystem filesystem,
BuildTarget buildTarget)
Creates a file path for a linker arg file
|
static java.util.function.Predicate<? super SourcePath> |
sourcePathExt(SourcePathResolverAdapter resolver,
String... extensions) |
public static java.util.function.Predicate<? super Path> ext(String... extensions)
extensions
- for which to return truepublic static java.util.function.Predicate<? super SourcePath> sourcePathExt(SourcePathResolverAdapter resolver, String... extensions)
public static Path makeLinkerArgFilePath(ProjectFilesystem filesystem, BuildTarget buildTarget)
public static Path makeArgFilePath(ProjectFilesystem filesystem, BuildTarget buildTarget, String prefix)