conor 2002/12/21 07:04:17
Modified: src/main/org/apache/tools/ant/taskdefs Definer.java
Log:
Make the message more informative when a class cannot be loaded
due to a missing dependent class.
PR: 14806
Submitted by: David Jencks
Revision Changes Path
1.22 +4 -4
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Definer.java
Index: Definer.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Definer.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -w -u -r1.21 -r1.22
--- Definer.java 25 Jul 2002 15:21:04 -0000 1.21
+++ Definer.java 21 Dec 2002 15:04:17 -0000 1.22
@@ -234,9 +234,9 @@
+ " 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);
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>