Browse Source

Defer configuration of TaskContainer's tasks. This forces Tasks to get

configured just prior to execution picking up latest property values
etc.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274366 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 22 years ago
parent
commit
38f6eba8a1
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/main/org/apache/tools/ant/UnknownElement.java

+ 5
- 1
src/main/org/apache/tools/ant/UnknownElement.java View File

@@ -141,7 +141,11 @@ public class UnknownElement extends Task {

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

/**


Loading…
Cancel
Save