api / org.gradle.api.resources / ResourceHandler

ResourceHandler

interface ResourceHandler

Provides access to resource-specific utility methods, for example factory methods that create various resources.

Functions

bzip2

abstract fun bzip2(path: Any): ReadableResource

Creates resource that points to a bzip2 compressed file at the given path. The path is evaluated as per org.gradle.api.Project#file(Object).

getText

abstract fun getText(): TextResourceFactory

Returns a factory for creating TextResources from various sources such as strings, files, and archive entries.

gzip

abstract fun gzip(path: Any): ReadableResource

Creates resource that points to a gzip compressed file at the given path. The path is evaluated as per org.gradle.api.Project#file(Object).