dimanche 4 novembre 2018

How to make variables defined outside method to be used inside method in jsr223 sample groovy script

def variable1;
def variable2;

def method()
{
  variable1 = someValue;
  variable2 = sameValue;
}

method();

I clearly don't want to pass the variables as arguments to functions

Aucun commentaire:

Enregistrer un commentaire