-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up
refresh-dirs
for Orchard development
Splits `java.parser` / `java.legacy-parser` into distinct `:source-paths`. This way, we can conditionally set the `refresh-dirs` for those of us using `tools.namespace` / `cider-refresh`, without it being broken because either of these namespaces couldn't be loaded under one's JDK.
- Loading branch information
Showing
5 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
(ns user | ||
(:require | ||
[clojure.java.javadoc :refer [javadoc]] | ||
[clojure.pprint :refer [pprint]] | ||
[clojure.reflect :refer [reflect]] | ||
[clojure.repl :refer [apropos dir doc find-doc pst source]] | ||
[clojure.set :as set] | ||
[clojure.string :as string] | ||
[clojure.test :as test] | ||
[clojure.tools.namespace.repl :refer [refresh refresh-all clear refresh-dirs set-refresh-dirs]])) | ||
|
||
(def jdk8? | ||
(->> "java.version" System/getProperty (re-find #"^1.8."))) | ||
|
||
(cond->> ["dev" "src" "test"] | ||
jdk8? (into ["src-jdk8"]) | ||
(not jdk8?) (into ["src-newer-jdks"]) | ||
true (apply set-refresh-dirs)) |
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
File renamed without changes.
File renamed without changes.