ResourceHandler

API Documentation:ResourceHandler

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

Properties

PropertyDescription
text
Incubating

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

Methods

MethodDescription
bzip2(path)

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

gzip(path)

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

Script blocks

No script blocks

Property details

TextResourceFactory text (read-only)

Note: This property is incubating and may change in a future version of Gradle.

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

Method details

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

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