Last active
April 12, 2019 22:51
-
-
Save souenzzo/e67571042d10f94a2b70840566ad9e13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns nondeps.core) | |
(defn -main | |
[target] | |
(let [f @#'clojure.core/load | |
paths (atom [])] | |
(with-redefs [clojure.core/load (fn [& path] | |
(swap! paths concat path) | |
(apply f path))] | |
(require (symbol target)) | |
(prn (mapv identity #_ clojure.java.io/resource @paths) | |
(System/getProperty "java.class.path"))))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment