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 ResourceFiltercaseSensitive()The match will be caseSensitive.static ResourceFilterexclude()Creates a ResourceFilter which excludes the specified resources.ResourceFilterfiles()Sets this resource filter to include files.ResourceFilterfilesAndFolders()Sets this resource filter to include files and folders.ResourceFilterfolders()Sets this resource filter to include folders.inthashCode()static ResourceFilterinclude()Creates a ResourceFilter which includes the specified resources.ResourceFilterlocation(String value)Matches on `location`, as opposed to `name` and `projectRelativePath`.ResourceFiltername(String value)Matches on `name`, as opposed to `location` and `projectRelativePath`.ResourceFilterprojectRelativePath(String value)Matches on `projectRelativePath`, as opposed to `name` and `location`.ResourceFilterrecursive()The match will be recursive from the root directory.ResourceFilterregex()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.
-
-