atom feed10 messages in org.codehaus.grails.devRe: [grails-dev] Grails and environme...
FromSent OnAttachments
Xavier de LabouretAug 16, 2007 10:33 am 
Guillaume LaforgeAug 16, 2007 1:21 pm 
Xavier de LabouretAug 17, 2007 2:58 am 
Jesse O'Neill-OineAug 21, 2007 9:06 am 
Graeme RocherAug 21, 2007 9:16 am 
Graeme RocherAug 21, 2007 9:18 am 
Jesse O'Neill-OineAug 21, 2007 9:38 am 
Marc PalmerAug 21, 2007 2:10 pm 
Darren DavisonAug 22, 2007 4:17 am 
Marc PalmerAug 22, 2007 4:40 am 
Subject:Re: [grails-dev] Grails and environment-independant WARs
From:Graeme Rocher (
Date:Aug 21, 2007 9:16:06 am

On 8/21/07, Jesse O'Neill-Oine <> wrote:

We also follow the best practice of migrating the same war file through our environments, so I'm running into this same issue. Is there any reason why the grails.env in isn't allowed to be overridden by specifying - Dgrails.env=foo so that using the same war from environment to environment is trivial? It would seem that this would be a simple fix in DefaultGrailsApplication.loadMetadata() to default to whatever is in , but then to override with System.getProperty(GrailsApplication.ENVIRONMENT) if present. With that in place, I believe I would then be able to build a production war, but override it in each of the environments that I must go through for testing, etc. I would love to see this before 0.6 final if at all possible because I wasn't planning on setting up a JNDI dataSource.

I'm not sure we'll have time, I'm doing the RC tomorrow morning. If you raise an issue and supply a patch we can consider its inclusion, but at the moment the only remaining issues I am committed to fixing for 0.6 are GRAILS-1498 and GRAILS-1517



On 8/17/07, Xavier de Labouret <> wrote:

glaforge wrote:

Bonjour Xavier,

I think you may define a dataSource bean in the spring/resources.xml file pointing at a JNDI data source configured in your app server.

Exactly what i needed.

Merci Guillaume :)

-- View this message in context: Sent from the grails - dev mailing list archive at


To unsubscribe from this list please visit: