We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
os-name
os-type
1 parent 55e0e72 commit 4e1f333Copy full SHA for 4e1f333
src/orchard/misc.clj
@@ -3,8 +3,19 @@
3
[clojure.java.io :as io]
4
[clojure.string :as str]))
5
6
+(def os-name
7
+ (str/lower-case (System/getProperty "os.name")))
8
+
9
+(def os-type
10
+ (condp #(str/includes? %2 %1) os-name
11
+ "linux" ::os-linux
12
+ "mac" ::os-mac
13
+ "windows" ::os-windows
14
+ "bsd" ::os-bsd
15
+ ::os-not-supported))
16
17
(defn os-windows? []
- (.startsWith (System/getProperty "os.name") "Windows"))
18
+ (= ::os-windows os-type))
19
20
(defn boot-fake-classpath
21
"Retrieve Boot's fake classpath.
0 commit comments