Enum AntPatternFileCollector.ScanOption
- java.lang.Object
-
- java.lang.Enum<AntPatternFileCollector.ScanOption>
-
- jetbrains.buildServer.util.pathMatcher.AntPatternFileCollector.ScanOption
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AntPatternFileCollector.ScanOption>
- Enclosing class:
- AntPatternFileCollector
public static enum AntPatternFileCollector.ScanOption extends java.lang.Enum<AntPatternFileCollector.ScanOption>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOW_EXTERNAL_SCAN
allows scanning outside of given directoryINCLUDE_ALL_IF_NO_RULES
includes all files if there are no rules at allMATCH_DIRECTORIES
match directories and include them into the result.NOT_FOLLOW_SYMLINK_DIRS
not follow symlinks, when possible.PRIORITIZE_EXCLUDES
apply excludes before includesSCAN_ITERATIVELY
scan iterativelyUSE_RULE_STRICTNESS
Prioritize rules based on their strictness.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
PRIORITIZE_EXCLUDES
public static final AntPatternFileCollector.ScanOption PRIORITIZE_EXCLUDES
apply excludes before includes
-
USE_RULE_STRICTNESS
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.
-
INCLUDE_ALL_IF_NO_RULES
public static final AntPatternFileCollector.ScanOption INCLUDE_ALL_IF_NO_RULES
includes all files if there are no rules at all
-
ALLOW_EXTERNAL_SCAN
public static final AntPatternFileCollector.ScanOption ALLOW_EXTERNAL_SCAN
allows scanning outside of given directory
-
NOT_FOLLOW_SYMLINK_DIRS
public static final AntPatternFileCollector.ScanOption NOT_FOLLOW_SYMLINK_DIRS
not follow symlinks, when possible. requires java 1.7+ for reliable symlink detection
-
MATCH_DIRECTORIES
public static final AntPatternFileCollector.ScanOption MATCH_DIRECTORIES
match directories and include them into the result. Does not apply to intermediate directories, only to those that match the pattern(s) completely
-
SCAN_ITERATIVELY
public static final AntPatternFileCollector.ScanOption SCAN_ITERATIVELY
scan iteratively
-
-
Method Detail
-
values
public static AntPatternFileCollector.ScanOption[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AntPatternFileCollector.ScanOption c : AntPatternFileCollector.ScanOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AntPatternFileCollector.ScanOption valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-