Class JarFattener

    • Field Detail

      • FAT_JAR_SRC_RESOURCES

        public static final com.google.common.collect.ImmutableList<String> FAT_JAR_SRC_RESOURCES
    • Method Detail

      • getNativeLibraries

        public com.google.common.collect.ImmutableMap<String,​SourcePath> getNativeLibraries()
      • updateBuildRuleResolver

        public void updateBuildRuleResolver​(BuildRuleResolver ruleResolver)
        Description copied from interface: BuildRule
        Updates the BuildRuleResolver and associated objects for this build rule.

        Build rules sometimes hold field references to build rule resolvers. If this build rule is to be cached, it must update its BuildRuleResolver when a new action graph is constructed to avoid leaking the entire action graph it was originally associated with.

        Specified by:
        updateBuildRuleResolver in interface BuildRule
        Overrides:
        updateBuildRuleResolver in class AbstractBuildRule
      • getTransitiveClasspaths

        public com.google.common.collect.ImmutableSet<SourcePath> getTransitiveClasspaths()
        Specified by:
        getTransitiveClasspaths in interface HasClasspathEntries
        Returns:
        Classpath entries for this rule and its dependencies. e.g. If the rule represents a java library, then these entries will be passed to javac's -classpath flag in order to build a jar associated with this rule.
      • getTransitiveClasspathDeps

        public com.google.common.collect.ImmutableSet<JavaLibrary> getTransitiveClasspathDeps()
        Specified by:
        getTransitiveClasspathDeps in interface HasClasspathEntries
        Returns:
        A set of rules contributing classpath entries for this rule and its dependencies.
      • getOutputClasspaths

        public com.google.common.collect.ImmutableSet<SourcePath> getOutputClasspaths()
        Specified by:
        getOutputClasspaths in interface HasClasspathEntries
        Returns:
        Classpath entries that this rule will contribute when it is used as a dependency. e.g. If the rule represents a java library, then these entries must be passed to javac's -classpath flag in order to compile rules that depend on this rule. This is a superset of getImmediateClasspaths which also contains the classpath entries of any exported deps.