Browse Source

Make the message more informative when a class cannot be loaded

due to a missing dependent class.

PR:	14806
Submitted by:	David Jencks


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273679 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 22 years ago
parent
commit
b57735118f
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/main/org/apache/tools/ant/taskdefs/Definer.java

+ 4
- 4
src/main/org/apache/tools/ant/taskdefs/Definer.java View File

@@ -234,9 +234,9 @@ public abstract class Definer extends Task {
+ " cannot be found";
throw new BuildException(msg, cnfe, getLocation());
} catch (NoClassDefFoundError ncdfe) {
String msg = getTaskName() + " class " + value
+ " cannot be found";
throw new BuildException(msg, ncdfe, getLocation());
String msg = getTaskName() + "A class needed on loading by class "
+ value + " cannot be found: " + ncdfe.getMessage();
throw new BuildException(msg, ncdfe, location);
}
}

@@ -318,7 +318,7 @@ public abstract class Definer extends Task {
}

/**
* Returns the classname of the object we are defining.
* Returns the classname of the object we are defining.
* May be <code>null</code>.
*/
public String getClassname() {


Loading…
Cancel
Save