Re: Classloading issue

2014-05-13 Thread Charles Duffy
I was thinking of doing a runtime type check on the exception returned (grabbing an instance of the class via introspection, to avoid a classload-time dependency) and reraising anything unexpected wrapped in a RuntimeException; otherwise, that's pretty much exactly the way I would have fixed the is

Re: Classloading issue

2014-05-13 Thread Nicolas Lalevée
r1594279 seems to fix the issue, but I still don't understand why. Any suggestion of a better fix is welcomed. Nicolas Le 11 mai 2014 à 23:41, Nicolas Lalevée a écrit : > Hi, > > I need some help to understand a bug around classloading (nothing that > particular to Ivy). > > I was looking in

Re: Classloading issue

2014-05-12 Thread Nicolas Lalevée
Le 12 mai 2014 à 02:51, Martin Gainty a écrit : >> Subject: Re: Classloading issue >> From: nicolas.lale...@hibnet.org >> Date: Mon, 12 May 2014 01:51:12 +0200 >> To: dev@ant.apache.org >> >> >> Le 12 mai 2014 à 01:34, Antoine Levy Lambert a écri

RE: Classloading issue

2014-05-11 Thread Martin Gainty
> Subject: Re: Classloading issue > From: nicolas.lale...@hibnet.org > Date: Mon, 12 May 2014 01:51:12 +0200 > To: dev@ant.apache.org > > > Le 12 mai 2014 à 01:34, Antoine Levy Lambert a écrit : > > > Hello Nicolas, > > > > I have tried your

Re: Classloading issue

2014-05-11 Thread Nicolas Lalevée
Le 12 mai 2014 à 01:34, Antoine Levy Lambert a écrit : > Hello Nicolas, > > I have tried your test case and it is failing as you except : > > BUILD FAILED > /Users/antoine/dev/asf/ivyde-trunk/test/ssh-resolver/build.xml:27: > java.lang.NoClassDefFoundError: com/jcraft/jsch/agentproxy/AgentPro

Re: Classloading issue

2014-05-11 Thread Antoine Levy Lambert
Hello Nicolas, I have tried your test case and it is failing as you except : BUILD FAILED /Users/antoine/dev/asf/ivyde-trunk/test/ssh-resolver/build.xml:27: java.lang.NoClassDefFoundError: com/jcraft/jsch/agentproxy/AgentProxyException at org.apache.ivy.plugins.repository.ssh.AbstractSs

Classloading issue

2014-05-11 Thread Nicolas Lalevée
Hi, I need some help to understand a bug around classloading (nothing that particular to Ivy). I was looking into IVY-1471 [1] and I don't understand why it is failing that way. In the classpath there are both Ivy and Jsch, but not the optional jar related to managing the ssh agent via jsch. A