This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-11
Channels
- # admin-announcements (3)
- # beginners (51)
- # boot (14)
- # cider (55)
- # cljsrn (5)
- # clojure (105)
- # clojure-austin (2)
- # clojure-brasil (3)
- # clojure-dusseldorf (2)
- # clojure-greece (5)
- # clojure-italy (1)
- # clojure-mexico (1)
- # clojure-russia (74)
- # clojure-spec (66)
- # clojure-uk (22)
- # clojurescript (124)
- # cursive (10)
- # datomic (79)
- # events (2)
- # immutant (3)
- # jobs (4)
- # klipse (38)
- # leiningen (2)
- # luminus (1)
- # off-topic (25)
- # om (48)
- # om-next (36)
- # on (1)
- # onyx (19)
- # overtone (3)
- # pedestal (2)
- # proton (3)
- # re-frame (178)
- # reagent (49)
- # ring-swagger (1)
- # spacemacs (10)
- # specter (29)
- # testing (5)
- # untangled (6)
- # yada (65)
as i'm a bit of a java noob, can anyone point me in the right direction on how to always override certain system properties ?
or will i need to call System.setProperty () while launching my application all the time ?
if you call System.setProperty you will have to be sure that no-one has called System.getProperty with the same property name before you
well it probably depends what the property is and who reads it
but you’d need to be careful
if its a small set of properties you could pass them to the JVM on startup I think
or use a tool to do that for you
depends a bit on how you start the JVM
@lmergen This is more of a code question. When reading / using the system property in your application you have to make sure at that point that some other property is overridden.
yeah, what i want is pretty much ensure that spec's assertions are always enabled (which is based on a runtime system property), without having to manually call a function in my code
i would much rather have a file in the resource/
directory that specifies this, and would've expected the jvm to support this
@lmergen System Properties can be passed into the application in different ways, depending on the code or a possible configuration library. Even if you have a properties file in the resources folder that: 1. has to be loaded in your application and 2. can be overridden on application startup by providing the property directly like: java -Dproperty=foo.bar -jar baz.jar
but i am more thinking about the best place to specify what i want the default behavior to be
At least thats my thinking here, but, I am not in your place, so you might decide different
Hi everyone and good day! I don't work in Clojure but am learning Clojure, and attended Conj 2016. I am doing a three-month mentorship (unfortunately, the language we agreed on was Python, but maybe I can rebuild in Clojure 🙂 ) and we are in the initial stages of researching and obtaining information to build the best application that we can over the three-month period. It would be of great help to our team if you could spend five minutes filling out our nine-question survey. If anyone wants to contact me to follow up with the information gathered, you are more than welcome, too! I really, greatly appreciate this, and I am sorry for "spamming" (I promise we're building something fun!) Thank you and have a great day! -> https://goo.gl/forms/LUBrX8CV1Jia8dsc2
Made a simple ClojureScript library for watermarking images if anyone is interested in looking. Was a good crash course for me in figwheel, devcards, and Clojure(Script) in general. Definitely digging the language, tools, and people so far 🙂 https://github.com/brianium/dandy-roll