Skip to content

Instantly share code, notes, and snippets.

@making
Created January 13, 2010 17:00
Show Gist options
  • Save making/276368 to your computer and use it in GitHub Desktop.
Save making/276368 to your computer and use it in GitHub Desktop.
(defn add-classpath-dir
[dir]
(let [files (.listFiles (java.io.File. dir))]
(doseq [f (filter (fn [f] (and (.isFile f)
(.endsWith (.getName f) ".jar"))) files)]
(add-classpath (.toURL (.toURI f)))
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment