DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=20174>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=20174 antClassloader can not handle signed jars ------- Additional Comments From [EMAIL PROTECTED] 2004-09-07 01:09 ------- I think this is because the class loader returns the wrong CodeSource. Specifically, when I run a <junit> task that has a nested <classpath> that includes, amongst other things, a signed jar. When executing code from the signed jar, then the code: CodeSource source = SignedJarClass.class.getProtectionDomain().getCodeSource (); System.out.println("source = " + source.toString()); prints out: [junit] source = (file:/U:/Program Files/apache-ant-1.6.1/lib/ant.jar <no certificates>) i.e. the ant classloader reports that this class came from the ant.jar file and not my jar file, which is bogus. I am guessing this is not unique to signed jars - I suspect that getCodeSource () is broken for every jar, signed or not, that ant loads. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]