dromodel
dromodel

Reputation: 10213

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

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

Upvotes: 4

Views: 487

Answers (1)

Ken Liu
Ken Liu

Reputation: 22914

I don't think it's currently available. See GROOVY-1642 for a discussion of workarounds.

Upvotes: 6

Related Questions