loading other scripts from a groovy script?
- by IttayD
How can I load other scripts from within a groovy script? In particular, I want this:
in file A.groovy:
def say(String msg) {
println(msg)
}
say("hi")
in file B.groovy:
load("A.groovy")
say("bye")
running 'groovy B.groovy' should print
hi
bye