code: public static Vector tokenizePath (String path, String separator) {
          Vector ret = new Vector();
          if (FileUtil.isAbsolutePath(path)) {
              String[] s = FileUtil.dissect(path);
              ret.add(s[0]);
              path = s[1];
          }
          StringTokenizer st = new StringTokenizer(path, separator);
          while (st.hasMoreTokens()) {
              ret.addElement(st.nextToken());
          }
          return ret;
      }
docs: 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