Package com.diffplug.gradle.eclipse
Class ResourceFilter
- java.lang.Object
-
- com.diffplug.gradle.eclipse.ResourceFilter
-
public class ResourceFilter extends Object
Models an eclipse resource filter.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceFilter
caseSensitive()
The match will be caseSensitive.static ResourceFilter
exclude()
Creates a ResourceFilter which excludes the specified resources.ResourceFilter
files()
Sets this resource filter to include files.ResourceFilter
filesAndFolders()
Sets this resource filter to include files and folders.ResourceFilter
folders()
Sets this resource filter to include folders.int
hashCode()
static ResourceFilter
include()
Creates a ResourceFilter which includes the specified resources.ResourceFilter
location(String value)
Matches on `location`, as opposed to `name` and `projectRelativePath`.ResourceFilter
name(String value)
Matches on `name`, as opposed to `location` and `projectRelativePath`.ResourceFilter
projectRelativePath(String value)
Matches on `projectRelativePath`, as opposed to `name` and `location`.ResourceFilter
recursive()
The match will be recursive from the root directory.ResourceFilter
regex()
The match is a regex.
-
-
-
Method Detail
-
include
public static ResourceFilter include()
Creates a ResourceFilter which includes the specified resources.
-
exclude
public static ResourceFilter exclude()
Creates a ResourceFilter which excludes the specified resources.
-
files
public ResourceFilter files()
Sets this resource filter to include files.
-
folders
public ResourceFilter folders()
Sets this resource filter to include folders.
-
filesAndFolders
public ResourceFilter filesAndFolders()
Sets this resource filter to include files and folders.
-
name
public ResourceFilter name(String value)
Matches on `name`, as opposed to `location` and `projectRelativePath`.
-
location
public ResourceFilter location(String value)
Matches on `location`, as opposed to `name` and `projectRelativePath`.
-
projectRelativePath
public ResourceFilter projectRelativePath(String value)
Matches on `projectRelativePath`, as opposed to `name` and `location`.
-
caseSensitive
public ResourceFilter caseSensitive()
The match will be caseSensitive.
-
regex
public ResourceFilter regex()
The match is a regex.
-
recursive
public ResourceFilter recursive()
The match will be recursive from the root directory.
-
-