You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by st...@apache.org on 2008/11/01 20:45:32 UTC

svn commit: r709762 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Definer.java

Author: stevel
Date: Sat Nov  1 12:45:32 2008
New Revision: 709762

URL: http://svn.apache.org/viewvc?rev=709762&view=rev
Log:
Add the classloader in question when we get CNFE problems

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Definer.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Definer.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Definer.java?rev=709762&r1=709761&r2=709762&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Definer.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Definer.java Sat Nov  1 12:45:32 2008
@@ -22,10 +22,10 @@
 import java.io.IOException;
 import java.io.InputStream;
 import java.net.URL;
-import java.util.Map;
-import java.util.HashMap;
 import java.util.Enumeration;
+import java.util.HashMap;
 import java.util.Locale;
+import java.util.Map;
 import java.util.NoSuchElementException;
 import java.util.Properties;
 
@@ -614,14 +614,16 @@
                     def.checkClass(getProject());
                 }
                 ComponentHelper.getComponentHelper(getProject())
-                    .addDataTypeDefinition(def);
+                        .addDataTypeDefinition(def);
             } catch (ClassNotFoundException cnfe) {
                 String msg = getTaskName() + " class " + classname
-                    + " cannot be found";
+                        + " cannot be found"
+                        + "\n using the classloader " + al;
                 throw new BuildException(msg, cnfe, getLocation());
             } catch (NoClassDefFoundError ncdfe) {
                 String msg = getTaskName() + " A class needed by class "
-                    + classname + " cannot be found: " + ncdfe.getMessage();
+                        + classname + " cannot be found: " + ncdfe.getMessage()
+                        + "\n using the classloader " + al;
                 throw new BuildException(msg, ncdfe, getLocation());
             }
         } catch (BuildException ex) {