9 lines
297 B
Groovy
9 lines
297 B
Groovy
|
// define the properties file
|
||
|
ext.configFile = file "build.properties"
|
||
|
|
||
|
configFile.withReader {
|
||
|
// read config. it shall from now on be referenced as simply config or as project.config
|
||
|
def prop = new Properties()
|
||
|
prop.load(it)
|
||
|
project.ext.config = new ConfigSlurper().parse prop
|
||
|
}
|