Obter resource de um plugin grails

def doWithSpring = {
		String pathResource = 'pathResource'

		String pluginPath = manager.getPluginPath('plugin-name')

		String pluginPath = plugin.pluginPath
		def servletContext = application.parentContext.servletContext
		mappingRelativePath = servletContext.getRealPath(pluginPath + '/' + pathResource)
}
João Paulo