getResourceConnection
public java.net.URLConnection getResourceConnection(java.lang.String resourceName)
throws groovy.util.ResourceException
This implementation works for sources located in conf directory or packed into JARs.
It will throw ResourceException for resources in class directories, which is the case for running tests.
- Specified by:
getResourceConnection
in interface groovy.util.ResourceConnector
- Parameters:
resourceName
- resource to load
- Returns:
- connection to the resource
- Throws:
groovy.util.ResourceException
- if the requested resource can not be loaded