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.
1 parent d3304f6 commit 9750d8eCopy full SHA for 9750d8e
doc/FAQ.md
@@ -155,3 +155,18 @@
155
your uberjars will use `clojure.main` as their entry point. You can
156
launch with `java -jar my-app-standalone.jar -m my.entry.namespace
157
arg1 arg2 [...]` without any AOT, but it will take longer to launch.
158
+
159
+**Q:** I'd like to have certain config active only on a certain OS.
160
+**A:** You can do this by using unquote in the `:dev` profile:
161
162
+```clj
163
+:profiles {:dev [:dev/all ~(leiningen.core.utils/get-os)]
164
+ :dev/all {...}
165
+ :linux {...}
166
+ :windows {...}
167
+ :macosx {...}}
168
+```
169
170
+You can also check things like `(System/getProperty
171
+"java.specification.version")` to use the JVM version or any other
172
+property.
0 commit comments