ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r709762 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Definer.java
Date Sat, 01 Nov 2008 19:45:32 GMT
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) {



Mime
View raw message