Is there a property like this... but for intellij?...
# intellij
c
Is there a property like this... but for intellij? I tried printing out the properties myself and inspecting them but i dont see anything in intellij. wondering if im maybe just missing something simple?
b
there's one called
"idea.sync.active"
but I'm not sure if this is what you need (as I didn't know about the android one)
c
I will try that out! Thanks! All I really want to do is in my compose for desktop app... I want to put a little "DEBUG" label in the top right corner if I'm building it from intellij. Because when I build it via
./gradlew desktopJar
then I want it to not say "debug". This is in order to help me when i have a development build installed AND a build from my distribution website lol. I keep getting confused on which one is which and i want an easy way to know what "mode" im in.
b
I see! Not 100% sure this will help then. You could probably do a dedicated Run Configuration that passes a -D to Gradle though.
c
yeah. im trying to use a technique that my entire team could use without needing to change things on everyones machine. hopefully this does the trick! ill post back here in a bit
b
Fair enough -although Run Configurations can be shared 🙂 They can go in
.idea
(or another folder)
c
oh TIL! thanks!
👍 1
FWIW. that property did not seem to work. always just showed up as null.
sad panda 1