private static PathFilter buildFilters ( Set < String > filterPaths , boolean failedMatchValue ) { if ( filterPaths == null ) return PathFilters . acceptAll ( ) ; else if ( filterPaths . isEmpty ( ) ) { return PathFilters . rejectAll ( ) ; } else { MultiplePathFilterBuilder builder = PathFilters . multiplePathFilterBuilder ( failedMatchValue ) ; for ( String importPathGlob : filterPaths ) builder . addFilter ( PathFilters . match ( importPathGlob ) , ! failedMatchValue ) ; return builder . create ( ) ; } }
Build a PathFilter for a set of filter paths