Mercurial > public > develkit
comparison init.gradle @ 163:c5f09d617715
process environment files in name order
author | Dave Smith <smith@nwoca.org> |
---|---|
date | Tue, 14 Jan 2014 01:16:43 +0000 |
parents | 29c3af8dc031 |
children | 7474ff33a1ba |
comparison
equal
deleted
inserted
replaced
162:29c3af8dc031 | 163:c5f09d617715 |
---|---|
389 }''') | 389 }''') |
390 if (developerPrivate['deploy.mode']) { environment.put('deploy.mode',developerPrivate['deploy.mode']) } | 390 if (developerPrivate['deploy.mode']) { environment.put('deploy.mode',developerPrivate['deploy.mode']) } |
391 | 391 |
392 def environments = [] | 392 def environments = [] |
393 gradle.ext.environment = environment | 393 gradle.ext.environment = environment |
394 file('.').eachFileMatch(~/^environment.*\.groovy$/) { envFile -> | 394 file('.').listFiles().findAll { it.name ==~ /^environment.*\.groovy$/ }.sort { it.name }.each { envFile -> |
395 def envName = envFile.name - '.groovy' | 395 def envName = envFile.name - '.groovy' |
396 def privateFile = file("private" + envName - "environment" + ".groovy") | 396 def privateFile = file("private" + envName - "environment" + ".groovy") |
397 logger.info("loading environment $envFile.name") | 397 logger.info("loading environment $envFile.name") |
398 | 398 |
399 def envCfg = slurper.parse(envFile.toURL()) | 399 def envCfg = slurper.parse(envFile.toURL()) |