We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If a variable has an undeclared type it goes into the script binding. The binding is visible to all methods which means data is shared.
evaluate() is a helper method to allow the dynamic evaluation of groovy expressions using this scripts binding as the variable scope.
evaluate()
In a variable binding, you can declare a closure which accepts no argument and must be restricted to calls without arguments.
With all of that in mind, here is your script working as intended.
evaluate ("test = { -> println \"Test is successful!\" }") test()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If a variable has an undeclared type it goes into the script binding. The binding is visible to all methods which means data is shared.
evaluate()
is a helper method to allow the dynamic evaluation of groovy expressions using this scripts binding as the variable scope.In a variable binding, you can declare a closure which accepts no argument and must be restricted to calls without arguments.
With all of that in mind, here is your script working as intended.
The text was updated successfully, but these errors were encountered: