You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by co...@apache.org on 2003/04/01 17:34:38 UTC

cvs commit: ant/src/main/org/apache/tools/ant UnknownElement.java

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));
       }
   
       /**