Browse Source

Give the user a clue what to do when the "task could not be found"

exception occurs.

Submitted by:	Erik Meade <emeade@geekfarm.org>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268083 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 24 years ago
parent
commit
7241d07c90
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/main/org/apache/tools/ant/UnknownElement.java

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

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


Loading…
Cancel
Save