Normally you could just peform an
import someClassName
and the groovy script will import the class (assmuming its all in the current dir).
However, how would I accomplish this when the script is run via the groovy script runner?
what is the difference? the same way, in the beginning of the script. Doesn't it work for you? do you have some errors?
I encounter something along the lines of
noMethodError
however if i use the class in the same file, it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please give more context and some non-working sample code
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the assistance but it appears to be working now. I'm unsure what I did differently from the first time I tested it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.