From 7241d07c9031bb3d6a8b8a481f202ac51399934a Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Fri, 13 Oct 2000 09:24:53 +0000 Subject: [PATCH] Give the user a clue what to do when the "task could not be found" exception occurs. Submitted by: Erik Meade git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268083 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/UnknownElement.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/org/apache/tools/ant/UnknownElement.java b/src/main/org/apache/tools/ant/UnknownElement.java index e515de025..1aa8c4b37 100644 --- a/src/main/org/apache/tools/ant/UnknownElement.java +++ b/src/main/org/apache/tools/ant/UnknownElement.java @@ -84,7 +84,10 @@ public class UnknownElement extends Task { if (realTask == null) { throw new BuildException("Could not create task of type: "+elementName+ " because I can\'t find it in the list of task"+ - " class definitions", location); + " class definitions. Common solutions are: 1"+ + " execute bin/bootstrap. 2 use taskdef to declare"+ + " your task. 3 add the task to defaults.properties." + , location); } realTask.setLocation(location);