From 38f6eba8a1ce37e6c2ae86f1307cbeaf3d977404 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Tue, 1 Apr 2003 15:34:38 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/UnknownElement.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/UnknownElement.java b/src/main/org/apache/tools/ant/UnknownElement.java index 947af5dd4..005216878 100644 --- a/src/main/org/apache/tools/ant/UnknownElement.java +++ b/src/main/org/apache/tools/ant/UnknownElement.java @@ -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)); } /**