ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant UnknownElement.java
Date Tue, 01 Apr 2003 15:34:38 GMT
conor       2003/04/01 07:34:38

  Modified:    src/main/org/apache/tools/ant UnknownElement.java
  Log:
  Defer configuration of TaskContainer's tasks. This forces Tasks to get
  configured just prior to execution picking up latest property values
  etc.
  
  Revision  Changes    Path
  1.43      +5 -1      ant/src/main/org/apache/tools/ant/UnknownElement.java
  
  Index: UnknownElement.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/UnknownElement.java,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -w -u -r1.42 -r1.43
  --- UnknownElement.java	1 Apr 2003 14:59:58 -0000	1.42
  +++ UnknownElement.java	1 Apr 2003 15:34:38 -0000	1.43
  @@ -141,7 +141,11 @@
   
           handleChildren(realThing, getWrapper());
   
  -        getWrapper().maybeConfigure(getProject());
  +        // configure attributes of the object and it's children. If it is
  +        // a task container, defer the configuration till the task container
  +        // attempts to use the task
  +        getWrapper().maybeConfigure(getProject(), 
  +            !(realThing instanceof TaskContainer));
       }
   
       /**
  
  
  

Mime
View raw message