Obter resource de um plugin grails

Posted Over 7 years ago. Visible to the public.
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
Last edit
Over 7 years ago
Bruno Vieira
Posted by João Paulo to ZeroGlosa (2016-09-27 19:05)