ResourceFilter
constructor(stage: ResourceFilter.Stage, type: ResourceFilter.Type, filterWildcard: String, directory: String? = null)
Creates a new ResourceFilter using a wildcard pattern.
Parameters
stage
The stage at which the filter is applied.
type
The type of filter (whitelist or blacklist).
filterWildcard
The wildcard pattern to match file paths against.
directory
An optional directory to which the filter is scoped, or null
for global application.
constructor(stage: ResourceFilter.Stage, type: ResourceFilter.Type, filter: Regex, directory: String? = null)
Parameters
stage
The stage at which the filter is applied.
type
The type of filter (whitelist or blacklist).
filter
The regex pattern to match file paths against.
directory
An optional directory to which the filter is scoped, or null
for global application.