lucasmirandadourado / open-ehr-gen-framework

Automatically exported from code.google.com/p/open-ehr-gen-framework
0 stars 0 forks source link

Cambiar el directorio donde se generan y obtienen las vistas #148

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Ahora está en un directorio de la aplicación: grails-app/views/genViews

Ese directorio debe ser externo a la app para poder usarlo en deployments en 
Tomcat que no tienen acceso a los directorios de la app.

Cambios:

GuiCachingService
L38
String pathToGeneratedViews = '.'+ PS +'grails-app'+ PS +'views'+ PS 
+'genViews'+ PS

GuiManager
L23
private static String guiRepositoryPath = "." + PS + "grails-app" + PS + 
"views" + PS + "genViews" + PS;

Usar config y referenciar mediante ApplicationHolder

import org.codehaus.groovy.grails.commons.ApplicationHolder
...
ApplicationHolder.application.config.hce.gen_views_repo

Original issue reported on code.google.com by pablo.swp@gmail.com on 26 Jul 2015 at 5:17

GoogleCodeExporter commented 8 years ago
Also externalize the ADL folder:

Caused by: java.lang.Exception: archetypes/ehr/ doesn't exists or can't be read

Original comment by pablo.swp@gmail.com on 26 Jul 2015 at 5:34

GoogleCodeExporter commented 8 years ago
Done.

Original comment by pablo.swp@gmail.com on 27 Jul 2015 at 6:02