comparison init.gradle @ 103:3267840f534f

USASR-800: fix showEnvironment task
author smith@nwoca.org
date Sat, 31 Mar 2012 18:43:07 +0100
parents 8ac4e506ca7b
children 13a1e737ca31
comparison
equal deleted inserted replaced
102:8ac4e506ca7b 103:3267840f534f
106 } 106 }
107 } 107 }
108 108
109 109
110 task showEnvironments << { 110 task showEnvironments << {
111 println "Defined environments: $environments" 111 println "Defined environments: $gradle.environments"
112 environments.each { e -> 112 gradle.environments.each { e ->
113 println "\n $e:" 113 println "\n $e:"
114 getProperty(e).flatten().each { k, v -> println String.format(' %25s = %s',k,v) } 114 gradle.getProperty(e).flatten().each { k, v -> println String.format(' %25s = %s',k,v) }
115 } 115 }
116 } 116 }
117 117
118 def loadEnvironments() { 118 def loadEnvironments() {
119 def developerPrivate = new Properties() 119 def developerPrivate = new Properties()