Class PackagedResource

  • All Implemented Interfaces:

    public class PackagedResource
    extends Object
    implements java.util.function.Supplier<Path>
    Represents a zip that has been packaged as a resource with Buck, but which should be expanded at most once during Buck's execution (not per-build).
    • Method Detail

      • get

        public Path get()
        Specified by:
        get in interface java.util.function.Supplier<Path>
      • getResourceIdentifier

        public String getResourceIdentifier()
        Use this as unique ID for resource when hashing is not enabled
        Class name followed by relative file path. E.g.
      • getFilenamePath

        public Path getFilenamePath()
        Use this combined with file hash as unique ID when hashing is enabled.
        Path representing filename of packaged resource