https://kotlinlang.org logo
Title
s

Smallville7123

04/20/2019, 10:42 AM
searches
kotlin find gradle root without using gradle
and first result is
<https://kotlinlang.org/docs/reference/using-gradle.html>
-_-
g

gildor

04/20/2019, 12:17 PM
It's just impossible, only build system knows sources path, not compiled program
Just set JVM system property
s

Smallville7123

04/20/2019, 12:21 PM
i cant find it
g

gildor

04/21/2019, 1:15 AM
Cannot find what? Read about Java system properties and how to use them, it's just a way to pass some variable to runtime and read it on runtime You just should understand that compiled program doesn't have any relationship to sources, do not have sources, path to project etc