How gradle can print its own install location?

on linux, the binary is often in /usr/bin via a link to the real installation path. how can gradle know its own location or even print its own location, without somebody doing on shell

❯ readlink -f /usr/bin/gradle
/usr/share/java/gradle/bin/gradle

The start script does a more cross-platform compatible version of that in its start script.
Just open it and read the code. :slight_smile: