Re: ClassLoader classpath of a TaskDef'd task

2014-04-15 Thread Edoardo Vacchi
Please notice that I am having the problem in *netbeans*! the problem seems not to be occurring from the CLI On Tue, Apr 15, 2014 at 9:10 AM, Edoardo Vacchi wrote: > My taskdef'd task uses >Thread.currentThread().getContextClassLoader(); > to load dynamically a series of c

ClassLoader classpath of a TaskDef'd task

2014-04-15 Thread Edoardo Vacchi
My taskdef'd task uses Thread.currentThread().getContextClassLoader(); to load dynamically a series of classes *during* the execution of the task itself. These classes are actually the same jar of the task implementation. Now, if I put my jars in ~/.ant/lib the task works. If I use ... wh

Re: Ant System Class Loader does not honor $CLASSPATH, honors $LOCALCLASSPATH

2013-03-27 Thread Edoardo Vacchi
hread().getContextClassLoader(); The context class loader seems to actually honor -lib and $CLASSPATH On Wed, Mar 27, 2013 at 9:07 AM, Edoardo Vacchi wrote: > On Tue, Mar 26, 2013 at 11:43 PM, Rainer Noack wrote: > >> if you're launching ant via shell script, it is using >> oata.launc

Re: Ant System Class Loader does not honor $CLASSPATH, honors $LOCALCLASSPATH

2013-03-27 Thread Edoardo Vacchi
On Tue, Mar 26, 2013 at 11:43 PM, Rainer Noack wrote: > if you're launching ant via shell script, it is using > oata.launcher.Launcher.java > > This class reorganises the classpath a bit. [...] Hi Rainer, then how can I pass to the new ClassLoader a custom classpath? (which is in fact the path(

Ant System Class Loader does not honor $CLASSPATH, honors $LOCALCLASSPATH

2013-03-26 Thread Edoardo Vacchi
Hi to everybody on the list, I am forwarding the question I've asked on stackoverflow http://stackoverflow.com/questions/15383099/ant-system-class-loader-does-not-honor-classpath-honors-localclasspath as I did not have any feedback in several days. I hope I will find an answer here. Thanks in adv