Interface BuildTargetSourcePath

    • Method Detail

      • getTarget

        default BuildTarget getTarget()
        Returns:
        the target of the BuildRule which generates the file.
      • getPrecomputedHash

        Optional<com.google.common.hash.HashCode> getPrecomputedHash()
        In rare cases, a BuildTargetSourcePath may know a hash of its content on disk before it even creates its output. In this case, we can skip hashing its output files entirely and simply use this precomputed hash code. Use Optional.empty() in the common case.
      • representationForRuleKey

        default String representationForRuleKey()
        Returns:
        a string representation that is usable for rule keys, i.e. does not depend on absolute paths