I’ve a method as shown below that calls another instance method from the same class. However, the build fails with MissingMethodException unless I make the later method static. Is there a way not to have to do that?
private List<String> myMethod() {
wsdlFiles.each { wsdlURL ->
wsdlUrls.add(MyClass.getURLAsString(new File(wsdlDir, wsdlURL)))
}
wsdlUrls
}
private static String getURLAsString(File f) {
f.toURI().toURL().toString()
}