Browse Source

addConfiguredXXX was not working for TaskAdpater wrapped classes

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273664 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 22 years ago
parent
commit
7f60f63977
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/main/org/apache/tools/ant/RuntimeConfigurable.java

+ 6
- 2
src/main/org/apache/tools/ant/RuntimeConfigurable.java View File

@@ -249,7 +249,7 @@ public class RuntimeConfigurable {
* to invalid attributes or children, or text being added to * to invalid attributes or children, or text being added to
* an element which doesn't accept it. * an element which doesn't accept it.
*/ */
public void maybeConfigure(Project p, boolean configureChildren)
public void maybeConfigure(Project p, boolean configureChildren)
throws BuildException throws BuildException
{ {
String id = null; String id = null;
@@ -293,7 +293,11 @@ public class RuntimeConfigurable {
} else { } else {
child.maybeConfigure(p); child.maybeConfigure(p);
} }
ProjectHelper.storeChild(p, wrappedObject, child.wrappedObject,
Object container = wrappedObject;
if (container instanceof TaskAdapter) {
container = ((TaskAdapter) container).getProxy();
}
ProjectHelper.storeChild(p, container, child.wrappedObject,
child.getElementTag() child.getElementTag()
.toLowerCase(Locale.US)); .toLowerCase(Locale.US));
} }


Loading…
Cancel
Save