diff --git a/project.properties b/project.properties index 8192ecd..8869e54 100644 --- a/project.properties +++ b/project.properties @@ -1,6 +1,6 @@ -#Mon, 05 Dec 2011 22:11:12 -0600 +#Mon, 05 Dec 2011 22:17:22 -0600 name=jdb-util version=1.4 lib.local=true -build.number=8 +build.number=9 diff --git a/src/main/com/jdbernard/util/SmartConfig.groovy b/src/main/com/jdbernard/util/SmartConfig.groovy index 3f80289..9e8e61e 100644 --- a/src/main/com/jdbernard/util/SmartConfig.groovy +++ b/src/main/com/jdbernard/util/SmartConfig.groovy @@ -45,11 +45,11 @@ public class SmartConfig { def val = props[name] - if (val == null && defVal != null) { + if (val == null) { log.trace("Doesn't exists, setting with given default") val = defVal - this.setProperty(name, defVal) + if (defVal != null) { this.setProperty(name, defVal) } } else {