localPropsFIS.close()
p.each {
key, val ->
- def over = getProperty(key) != null
+ def oldval = findProperty(key)
setProperty(key, val)
- if (over) {
- println("Overriding property '${key}' with local.properties value '${val}'")
+ if (oldval != null) {
+ println("Overriding property '${key}' ('${oldval}') with local.properties value '${val}'")
+ } else {
+ println("Setting unknown property '${key}' with local.properties value '${val}'")
}
}
} catch (Exception e) {
}
// override getdown_app_base if requested
- if (getProperty("getdown_appbase_override") != null) {
+ if (findProperty("getdown_appbase_override") != null) {
getdown_app_base = string(getProperty("getdown_appbase_override"))
println("Overriding getdown appbase with '${getdown_app_base}'")
}