Obter resource de um plugin grails

Updated . Posted . 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
Bruno Vieira
Posted by João Paulo to ZeroGlosa (2016-09-27 19:05)