/** * Matches path against pattern using *, ? and ** wildcards. * Both path and the pattern are tokenized on path separators (both \ and /). * '**' represents deep tree wildcard, as in Ant. */ public static boolean matchPath(String path, String pattern) { String[] pathElements = StringUtil.splitc(path, PATH_SEPARATORS); String[] patternElements = StringUtil.splitc(pattern, PATH_SEPARATORS); return matchTokens(pathElements, patternElements); }
/** * Matches path against pattern using *, ? and ** wildcards. * Both path and the pattern are tokenized on path separators (both \ and /). * '**' represents deep tree wildcard, as in Ant. */ public static boolean matchPath(final String path, final String pattern) { String[] pathElements = StringUtil.splitc(path, PATH_SEPARATORS); String[] patternElements = StringUtil.splitc(pattern, PATH_SEPARATORS); return matchTokens(pathElements, patternElements); }
/** * Matches path against pattern using *, ? and ** wildcards. * Both path and the pattern are tokenized on path separators (both \ and /). * '**' represents deep tree wildcard, as in Ant. */ public static boolean matchPath(final String path, final String pattern) { String[] pathElements = StringUtil.splitc(path, PATH_SEPARATORS); String[] patternElements = StringUtil.splitc(pattern, PATH_SEPARATORS); return matchTokens(pathElements, patternElements); }
/** * Matches path against pattern using *, ? and ** wildcards. * Both path and the pattern are tokenized on path separators (both \ and /). * '**' represents deep tree wildcard, as in Ant. */ public static boolean matchPath(String path, String pattern) { String[] pathElements = StringUtil.splitc(path, PATH_SEPARATORS); String[] patternElements = StringUtil.splitc(pattern, PATH_SEPARATORS); return matchTokens(pathElements, patternElements); }