Browse Source

Change the message displayed when a task cannot be found. This makes the

message more suitable for ant end-users rather than ant developers.


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


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268213 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 25 years ago
parent
commit
ee5cc3d419
1 changed files with 8 additions and 6 deletions
  1. +8
    -6
      src/main/org/apache/tools/ant/UnknownElement.java

+ 8
- 6
src/main/org/apache/tools/ant/UnknownElement.java View File

@@ -82,12 +82,14 @@ public class UnknownElement extends Task {
public void maybeConfigure() throws BuildException {
realTask = project.createTask(elementName);
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. Common solutions are: 1"+
" execute bin/bootstrap. 2 use taskdef to declare"+
" your task. 3 add the task to defaults.properties."
, location);
log("Could not create task of type: " + elementName + " Common solutions" +
" are adding the task to defaults.properties and executing bin/bootstrap",
Project.MSG_DEBUG);
throw new BuildException("Could not create task of type: " + elementName +
". Common solutions are to use taskdef to declare" +
" your task, or, if this is an optional task," +
" to put the optional.jar in the lib directory of" +
" your ant installation (ANT_HOME).", location);
}

realTask.setLocation(location);


Loading…
Cancel
Save