ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant UnknownElement.java
Date Sun, 19 Nov 2000 22:13:34 GMT
conor       00/11/19 14:13:34

  Modified:    src/main/org/apache/tools/ant UnknownElement.java
  Log:
  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>
  
  Revision  Changes    Path
  1.3       +8 -6      jakarta-ant/src/main/org/apache/tools/ant/UnknownElement.java
  
  Index: UnknownElement.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/UnknownElement.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- UnknownElement.java	2000/10/13 09:24:53	1.2
  +++ UnknownElement.java	2000/11/19 22:13:34	1.3
  @@ -82,12 +82,14 @@
       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);
  
  
  

Mime
View raw message