Groovy path to current executable script
def current_script = getClass().protectionDomain.codeSource.location.path
println(current_script)
This will print the full path to the current Groovy script.
timestamp: 2019-04-20T11:00:01 tags:
- getClass
- path