public class Flavors extends Object
Modifier and Type | Method and Description |
---|---|
static java.util.function.Predicate<BuildTarget> |
containsFlavor(Flavor flavor) |
static java.util.function.Predicate<BuildTarget> |
containsFlavors(FlavorDomain<?> domain) |
static com.google.common.collect.ImmutableSortedSet<BuildTarget> |
propagateFlavorDomains(BuildTarget target,
Iterable<FlavorDomain<?>> domains,
Iterable<BuildTarget> deps)
Propagate flavors represented by the given
FlavorDomain objects from a parent target to
its dependencies. |
static com.google.common.collect.FluentIterable<BuildTarget> |
propagateFlavorsInDomainIfNotPresent(FlavorDomain<?> domain,
BuildTarget buildTarget,
com.google.common.collect.FluentIterable<BuildTarget> deps)
Propagate a build target's flavors in a certain domain to a list of other build targets.
|
public static java.util.function.Predicate<BuildTarget> containsFlavors(FlavorDomain<?> domain)
public static java.util.function.Predicate<BuildTarget> containsFlavor(Flavor flavor)
public static com.google.common.collect.ImmutableSortedSet<BuildTarget> propagateFlavorDomains(BuildTarget target, Iterable<FlavorDomain<?>> domains, Iterable<BuildTarget> deps)
FlavorDomain
objects from a parent target to
its dependencies.public static com.google.common.collect.FluentIterable<BuildTarget> propagateFlavorsInDomainIfNotPresent(FlavorDomain<?> domain, BuildTarget buildTarget, com.google.common.collect.FluentIterable<BuildTarget> deps)
domain
- the flavor domain to be propagated.buildTarget
- the build target containing the flavors to be propagateddeps
- list of BuildTargetPaths to propagate the flavors to. If a target already contains
one or more flavors in domain, it is left unchanged.