ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/proposal/mutant/src/java/antcore/org/apache/ant/antcore/config AntConfigHandler.java
Date Wed, 20 Feb 2002 06:03:39 GMT
conor       02/02/19 22:03:39

  Modified:    proposal/mutant/src/java/antcore/org/apache/ant/antcore/config
                        AntConfigHandler.java
  Log:
  Small fix for default state of unset property handling
  
  Revision  Changes    Path
  1.7       +5 -1      jakarta-ant/proposal/mutant/src/java/antcore/org/apache/ant/antcore/config/AntConfigHandler.java
  
  Index: AntConfigHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/mutant/src/java/antcore/org/apache/ant/antcore/config/AntConfigHandler.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -w -u -r1.6 -r1.7
  --- AntConfigHandler.java	18 Feb 2002 12:36:04 -0000	1.6
  +++ AntConfigHandler.java	20 Feb 2002 06:03:39 -0000	1.7
  @@ -103,7 +103,11 @@
           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);
       }        
           
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message