This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-19
Channels
- # announcements (19)
- # asami (9)
- # babashka (26)
- # beginners (87)
- # biff (23)
- # calva (6)
- # clerk (7)
- # clj-kondo (3)
- # cljsrn (3)
- # clojure (115)
- # clojure-belgium (1)
- # clojure-berlin (1)
- # clojure-europe (31)
- # clojure-gamedev (5)
- # clojure-nl (2)
- # clojure-norway (8)
- # clojure-uk (2)
- # clojurescript (43)
- # clr (23)
- # datalevin (1)
- # datomic (14)
- # dev-tooling (23)
- # fulcro (38)
- # graphql (1)
- # gratitude (1)
- # jobs (1)
- # lsp (30)
- # off-topic (7)
- # pathom (25)
- # portal (21)
- # quil (6)
- # releases (5)
- # remote-jobs (1)
- # shadow-cljs (34)
- # sql (5)
- # tools-deps (6)
- # xtdb (13)
From within a running Clojure process, is there a way to detect if a specific alias is “enabled?”
directly, no
indirectly, probably. presumably you care about the effect, probably on the classpath, which you can see via (System/getProperty "java.class.path")
:jvm-opts ["-Dsome.property=some-flog"]
and then check it with that. I think we do that with
:ci
{:jvm-opts ["-Dci=TRUE"]}

that's a good way to do it; the use case I'm imagining is something like feature flags and custom java properties is a good way to ensure that capability is portable regardless of how the JVM is launched
thanks!