Forum Discussion

CJDownUnder's avatar
CJDownUnder
Contributor
7 years ago

Calling one groovy library method from another groovy library method

We are starting to think about building up our store of common groovy libraries. 

 

If I have two classes and want to call a method from class 2 from a method in class 1, having called the class 1 method in a Groovy script, how can I do this? Currently I get a compilation error.

 

Would I need to import class 2 into class 1?

2 Replies