From 2a642ec043787abc44f1ac422cd9a3b8b257e6bc Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Wed, 20 Feb 2002 06:03:39 +0000 Subject: [PATCH] Small fix for default state of unset property handling git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271440 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/ant/antcore/config/AntConfigHandler.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/proposal/mutant/src/java/antcore/org/apache/ant/antcore/config/AntConfigHandler.java b/proposal/mutant/src/java/antcore/org/apache/ant/antcore/config/AntConfigHandler.java index 7e477f2ab..a029a65a3 100755 --- a/proposal/mutant/src/java/antcore/org/apache/ant/antcore/config/AntConfigHandler.java +++ b/proposal/mutant/src/java/antcore/org/apache/ant/antcore/config/AntConfigHandler.java @@ -103,7 +103,11 @@ public class AntConfigHandler extends ElementHandler { config = new AntConfig(); config.allowRemoteLibs(getBooleanAttribute(REMOTE_LIBRARY_ATTR)); config.allowRemoteProjects(getBooleanAttribute(REMOTE_PROJECT_ATTR)); - config.allowUnsetProperties(getBooleanAttribute(UNSET_PROPS_ATTR)); + boolean allowUnsetProperties = true; + if (getAttribute(UNSET_PROPS_ATTR) != null) { + allowUnsetProperties = getBooleanAttribute(UNSET_PROPS_ATTR); + } + config.allowUnsetProperties(allowUnsetProperties); } /**