From b57735118f019c87d4f15ba13cd6871b584dcc99 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Sat, 21 Dec 2002 15:04:17 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/taskdefs/Definer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/Definer.java b/src/main/org/apache/tools/ant/taskdefs/Definer.java index ea129c83d..a21b0ad6a 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Definer.java +++ b/src/main/org/apache/tools/ant/taskdefs/Definer.java @@ -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 null. */ public String getClassname() {