What is the equivalent of $ 0 in a groovy script?

With Perl and shell scripts, the variable $ 0 contains the name of the file containing the script. What is equivalent in Groovy script?

+4
source share
1 answer

I do not think it is currently available. See GROOVY-1642 for a discussion of workarounds.

+6
source

Source: https://habr.com/ru/post/1302303/


All Articles