Class Flavors


  • public class Flavors
    extends Object
    • Method Detail

      • containsFlavors

        public static java.util.function.Predicate<BuildTarget> containsFlavors​(FlavorDomain<?> domain)
      • containsFlavor

        public static java.util.function.Predicate<BuildTarget> containsFlavor​(Flavor flavor)
      • propagateFlavorsInDomainIfNotPresent

        public 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.
        Parameters:
        domain - the flavor domain to be propagated.
        buildTarget - the build target containing the flavors to be propagated
        deps - list of BuildTargetPaths to propagate the flavors to. If a target already contains one or more flavors in domain, it is left unchanged.
        Returns:
        the list of BuildTargetPaths with any flavors propagated.