Enum AntPatternFileCollector.ScanOption

    • Enum Constant Detail

      • 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.

      • 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
    • 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 name
        java.lang.NullPointerException - if the argument is null