jetbrick-commons/src/main/java/jetbrick/lang/WildcharPathUtils.java
public static boolean matchPath(String path, String pattern) {
        String[] pathElements = StringUtils.splitChars(path, PATH_SEPARATORS);
        String[] patternElements = StringUtils.splitChars(pattern, PATH_SEPARATORS);
        return matchTokens(pathElements, patternElements);
    }
public static boolean matchPath(String path, String pattern) {
        String[] pathElements = StringUtils.splitChars(path, PATH_SEPARATORS);
        String[] patternElements = StringUtils.splitChars(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.