Re: custom classloader for a task

2005-09-18 Thread Jochen Theodorou
first, thx for all your help from everyone. To solve my problem I wrote a task that will store a laoder reference for the usage by my taskdef. That classloader does try to load all classes by himself instead delegating these classes to the parent as a normal classloader would do. To avoid dupli

RE: custom classloader for a task

2005-09-01 Thread Rainer Noack
e tasks is IMHO mostly allways the best solution). Cheers Rainer > -Original Message- > From: Jochen Theodorou [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 30, 2005 10:49 AM > To: Ant Users List > Subject: Re: custom classloader for a task > > > Conor MacNeil

Re: custom classloader for a task

2005-08-30 Thread Jochen Theodorou
Conor MacNeill schrieb: Jochen Theodorou wrote: Hi all, Te problem I have is a little complex but I hope you can help me. Groovy has an ant task to compile groovy classes and a task to use groovy from within ant see http://groovy.codehaus.org/Groovy+Ant+Task for details. But in some envirome

Re: custom classloader for a task

2005-08-30 Thread Jochen Theodorou
Dominique Devienne schrieb: Well, I think you summed it up pretty well. Forking is IMHO a good solution to avoid these conflicting jars, since you fully control the classpath of the forked VM. I guess you could create your own classload, and make the root classloader (the one which loads rt.jar)

Re: custom classloader for a task

2005-08-29 Thread Conor MacNeill
Jochen Theodorou wrote: > Hi all, > > Te problem I have is a little complex but I hope you can help me. Groovy > has an ant task to compile groovy classes and a task to use groovy from > within ant see http://groovy.codehaus.org/Groovy+Ant+Task for details. > But in some enviroments such as in m

Re: custom classloader for a task

2005-08-29 Thread Dominique Devienne
Well, I think you summed it up pretty well. Forking is IMHO a good solution to avoid these conflicting jars, since you fully control the classpath of the forked VM. I guess you could create your own classload, and make the root classloader (the one which loads rt.jar) its parent, to bypass the user

custom classloader for a task

2005-08-29 Thread Jochen Theodorou
Hi all, Te problem I have is a little complex but I hope you can help me. Groovy has an ant task to compile groovy classes and a task to use groovy from within ant see http://groovy.codehaus.org/Groovy+Ant+Task for details. But in some enviroments such as in maven with certain plugins we have