diff init.gradle @ 98:8c578d146476

correct env reference
author smith@nwoca.org
date Mon, 05 Mar 2012 21:05:08 +0000
parents bdc17bcaf797
children 333e489c1188
line wrap: on
line diff
--- a/init.gradle	Mon Mar 05 20:56:33 2012 +0000
+++ b/init.gradle	Mon Mar 05 21:05:08 2012 +0000
@@ -118,7 +118,7 @@
     if (file('private.properties').exists()) {
         developerPrivate.load(file('private.properties').newReader())
     }
-    setProperty 'env', hasProperty('env') ? gradle.env : (developerPrivate.env ?: 'dev')
+    setProperty 'env', (hasProperty('env') ? env : (developerPrivate.env ?: 'dev'))
     println "Environment is: $env"
     def slurper = new ConfigSlurper(env)
     def environment = new ConfigObject()