public static enum AntPatternFileCollector.ScanOption extends java.lang.Enum<AntPatternFileCollector.ScanOption>
Enum Constant and Description |
---|
ALLOW_EXTERNAL_SCAN
allows scanning outside of given directory
|
INCLUDE_ALL_IF_NO_RULES
includes all files if there are no rules at all
|
MATCH_DIRECTORIES
match directories and include them into the result.
|
NOT_FOLLOW_SYMLINK_DIRS
not follow symlinks, when possible.
|
PRIORITIZE_EXCLUDES
apply excludes before includes
|
SCAN_ITERATIVELY
scan iteratively
|
USE_RULE_STRICTNESS
Prioritize rules based on their strictness.
|
Modifier and Type | Method and Description |
---|---|
static AntPatternFileCollector.ScanOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AntPatternFileCollector.ScanOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AntPatternFileCollector.ScanOption PRIORITIZE_EXCLUDES
public static final AntPatternFileCollector.ScanOption USE_RULE_STRICTNESS
Prioritize rules based on their strictness. More strict rules apply first.
Example: given two rules (+:*.txt and -:t*.txt) the matcher will return all .txt files except those which starts with t.
Note: this only works, when one rule is exactly a subset of another one, like in an example above.
public static final AntPatternFileCollector.ScanOption INCLUDE_ALL_IF_NO_RULES
public static final AntPatternFileCollector.ScanOption ALLOW_EXTERNAL_SCAN
public static final AntPatternFileCollector.ScanOption NOT_FOLLOW_SYMLINK_DIRS
public static final AntPatternFileCollector.ScanOption MATCH_DIRECTORIES
public static final AntPatternFileCollector.ScanOption SCAN_ITERATIVELY
public static AntPatternFileCollector.ScanOption[] values()
for (AntPatternFileCollector.ScanOption c : AntPatternFileCollector.ScanOption.values()) System.out.println(c);
public static AntPatternFileCollector.ScanOption valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null