You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Sascha Freitag <fr...@objtec.com> on 2003/01/24 16:40:41 UTC
[PATCH] log original IOException error message too
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>