Re: Classloader problems

2007-06-08 Thread Kevin Jackson
Hi, Initially I was thinking of using a separate classloader for ant tasks/types (I cannot find the e-mail or bugzilla entry), but currently I do not think that this is necessary as: - I do not think that more 3th class dependent optional tasks will be added to ant core (they will be adde

Re: Classloader problems

2007-06-08 Thread Peter Reilly
On 6/8/07, Kevin Jackson <[EMAIL PROTECTED]> wrote: Hi, > This means that the moving ant-email.jar from $ANT_HOME/lib will > not work. > > The EmailTask code could be modified to allow a classpath element to be used > to load the MimeMailer class (with junittask like classloader tricks), Yes I

Re: Classloader problems

2007-06-08 Thread Kevin Jackson
Hi, This means that the moving ant-email.jar from $ANT_HOME/lib will not work. The EmailTask code could be modified to allow a classpath element to be used to load the MimeMailer class (with junittask like classloader tricks), Yes I looked at seeing if re-writing the EmailTask to include some

Re: Classloader problems

2007-06-08 Thread Peter Reilly
On 6/8/07, Kevin Jackson <[EMAIL PROTECTED]> wrote: Hi, > I was supprised that the you described > worked for scp, I think that you have removed the > ant-jsch.jar from from $ANT_HOME/lib. Yes as the classloader will find the ant-jsch.jar iin $ANT_HOME/lib and try to load the jsch code from th

Re: Classloader problems

2007-06-07 Thread Kevin Jackson
Hi, I was supprised that the you described worked for scp, I think that you have removed the ant-jsch.jar from from $ANT_HOME/lib. Yes as the classloader will find the ant-jsch.jar iin $ANT_HOME/lib and try to load the jsch code from there. I moved it to a different location and worked fine

Re: Classloader problems

2007-06-07 Thread Peter Reilly
I was supprised that the you described worked for scp, I think that you have removed the ant-jsch.jar from from $ANT_HOME/lib. I tryed the following without removing ant-jsch.jar from $ANT_HOME/lib and got the expected build failure. build.xml: result: BUI

Classloader problems

2007-06-06 Thread Kevin Jackson
Hi all, For obscure reasons, I have to redefine the core email task using a taskdef. This is my build file: Now the strange thing is that thescp & sshexec tasks report that they have been over-ridden by the new definitions, and