1.2.0 permalink Arrow_down_16x16

expand-wildcard

swank.util.class-browse

  • (expand-wildcard path)
Expands a wildcard path entry to its matching .jar files (JDK 1.6+).
If not expanding, returns the path entry as a single-element vector.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source swank/util/class_browse.clj:104 top

(defn expand-wildcard
  "Expands a wildcard path entry to its matching .jar files (JDK 1.6+).
  If not expanding, returns the path entry as a single-element vector."
  [#^String path]
  (let [f (File. path)]
    (if (and (= (.getName f) "*") (>= java-version 1.6))
      (-> f .getParentFile
          (.list (proxy [FilenameFilter] []
                   (accept [d n] (jar-file? n)))))
      [f])))
Vars in swank.util.class-browse/expand-wildcard: -> = >= and defn let proxy
Used in 0 other vars

Comments top

No comments for expand-wildcard. Log in to add a comment.