archiva-modules/archiva-base/archiva-common/src/main/java/org/apache/archiva/common/utils/PathUtil.java
/**
     * Breaks a path up into a Vector of path elements, tokenizing on
     *
     * @param path Path to tokenize. Must not be <code>null</code>.
     * @param separator the separator against which to tokenize.
     *
     * @return a Vector of path elements from the tokenized path
     * @since Ant 1.6
     */
Breaks a path up into a Vector of path elements, tokenizing on
@param path Path to tokenize. Must not be null.
@param separator the separator against which to tokenize.

@return a Vector of path elements from the tokenized path
@since Ant 1.6
Breaks a path up into a Vector of path elements tokenizing on @param path Path to tokenize . Must not be null . @param separator the separator against which to tokenize . @return a Vector of path elements from the tokenized path @since Ant 1 . 6
public static Vector<String> tokenizePath(String path, String separator) {
        Vector<String> ret = new Vector<>();
        if (isAbsolutePath(path)) {
            String[] s = dissect(path);
            ret.add(s[0]);
            path = s[1];
        }
        StringTokenizer st = new StringTokenizer(path, separator);
        while (st.hasMoreTokens()) {
            ret.addElement(st.nextToken());
        }
        return ret;
    }
public static Vector < String > tokenizePath ( String path , String separator ) { Vector < String > ret = new Vector < > ( ) ; if ( isAbsolutePath ( path ) ) { String [ ] s = dissect ( path ) ; ret . add ( s [ 0 ] ) ; path = s [ 1 ] ; } StringTokenizer st = new StringTokenizer ( path , separator ) ; while ( st . hasMoreTokens ( ) ) { ret . addElement ( st . nextToken ( ) ) ; } return ret ; }
Breaks a path up into a Vector of path elements, tokenizing on
 @param path Path to tokenize.
Breaks a path up into a Vector of path elements tokenizing on @param path Path to tokenize .