Document using unquote in :dev profile for OS-specific config.

Addresses #1228.
This commit is contained in:
Phil Hagelberg 2014-08-09 11:41:18 -07:00
parent d3304f6ea4
commit 9750d8e4b2

View file

@ -155,3 +155,18 @@
your uberjars will use `clojure.main` as their entry point. You can
launch with `java -jar my-app-standalone.jar -m my.entry.namespace
arg1 arg2 [...]` without any AOT, but it will take longer to launch.
**Q:** I'd like to have certain config active only on a certain OS.
**A:** You can do this by using unquote in the `:dev` profile:
```clj
:profiles {:dev [:dev/all ~(leiningen.core.utils/get-os)]
:dev/all {...}
:linux {...}
:windows {...}
:macosx {...}}
```
You can also check things like `(System/getProperty
"java.specification.version")` to use the JVM version or any other
property.