From 8ce69f050e2ee8b43b41e141689102822c3d575e Mon Sep 17 00:00:00 2001 From: Magesh Umasankar Date: Wed, 5 Dec 2001 21:10:41 +0000 Subject: [PATCH] Display to the user another cause of task not found exception being thrown. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270076 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/ant/UnknownElement.java | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/main/org/apache/tools/ant/UnknownElement.java b/src/main/org/apache/tools/ant/UnknownElement.java index 3f349d3e7..3615eb160 100644 --- a/src/main/org/apache/tools/ant/UnknownElement.java +++ b/src/main/org/apache/tools/ant/UnknownElement.java @@ -79,11 +79,11 @@ public class UnknownElement extends Task { * Childelements, holds UnknownElement instances. */ private Vector children = new Vector(); - + public UnknownElement (String elementName) { this.elementName = elementName; } - + /** * return the corresponding XML element name. */ @@ -118,7 +118,7 @@ public class UnknownElement extends Task { */ public void execute() { if (realThing == null) { - // plain impossible to get here, maybeConfigure should + // plain impossible to get here, maybeConfigure should // have thrown an exception. throw new BuildException("Could not create task of type: " + elementName, location); @@ -140,8 +140,8 @@ public class UnknownElement extends Task { * Creates child elements, creates children of the children, sets * attributes of the child elements. */ - protected void handleChildren(Object parent, - RuntimeConfigurable parentWrapper) + protected void handleChildren(Object parent, + RuntimeConfigurable parentWrapper) throws BuildException { if (parent instanceof TaskAdapter) { @@ -150,7 +150,7 @@ public class UnknownElement extends Task { Class parentClass = parent.getClass(); IntrospectionHelper ih = IntrospectionHelper.getHelper(parentClass); - + for (int i=0; i