Class PackagedResource

  • All Implemented Interfaces:
    java.util.function.Supplier<Path>

    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
        Returns:
        Class name followed by relative file path. E.g. com.facebook.buck.MyClass#some_resource_file.abc
      • getFilenamePath

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