What is the equivalent of $0 in a Groovy script?
With Perl and shell scripts, the variable $0 holds the name of the file contain开发者_运维问答ing the script. What is the equivalent in a Groovy script?
I don't think it's currently available. See GROOVY-1642 for a discussion of workarounds.
精彩评论