Applied-Energistics-2-tiler.../gradle/scripts/propertyloader.gradle

9 lines
297 B
Groovy
Raw Normal View History

// 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
}