ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sascha Freitag" <frei...@objtec.com>
Subject [PATCH] log original IOException error message too
Date Fri, 24 Jan 2003 15:40:41 GMT
Hi,
I apologize for not going through the bug process. But for me, this such a
small fix, that it is not a bug nor an enhancement.
So I decided to send a patch (hopefully it has the correct form) to this
mailing list, so that you could discuss and add it if you think that this is
a good change. This change could be helpful in case of class loading
problems. The change helped me to fix the problem described at
http://archives.apache.org/eyebrowse/ReadMsg?listName=ant-user@jakarta.apach
e.org&msgId=614430, or better it showed me that some thing have changed
after adding the jar's in the task definition.

Sascha

Index: AntClassLoader.java
===================================================================
RCS file:
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/AntClassLoader.jav
a,v
retrieving revision 1.63
diff -u -r1.63 AntClassLoader.java
--- AntClassLoader.java	24 Dec 2002 01:31:56 -0000	1.63
+++ AntClassLoader.java	23 Jan 2003 16:40:35 -0000
@@ -1069,8 +1069,9 @@
                     throw se;
                 } catch (IOException ioe) {
                     // ioe.printStackTrace();
-                    log("Exception reading component " + pathComponent ,
-                        Project.MSG_VERBOSE);
+					log("Exception reading component " + pathComponent +
+                        ", original message:" + ioe.getMessage() ,
+						Project.MSG_VERBOSE);
                 }
             }


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message