This message was deleted.
# community-support
s
This message was deleted.
✅ 1
f
I changed to
Copy code
System.setProperty("my.root", rootDir.parentFile.absolutePath)
then the build script compiles, but I still do not get this value in Java code when I launch Java code via some gradle task.
So perhaps set a system property inside settings.gradle.kts has no effect when running some main method from a sub project? 🤔
v
You just set the system property for the Gradle logic. If you run a main method, that is most probably done by a
JavaExec
task or
javaExec { ... }
block. Those do not get the system properties from the build process forwarded, you have to configure there what you want / need.
🙌 1
f
Aha, that makes sense. Thank you so much 😆
👌 1