Re: Execution classpath question for taskdef

2011-02-22 Thread tstrall
I would concur that with Ant 1.8 the classpath which is being used in the taskdef definition does not seem to be the same as the classpath used for executing the task later. In my case the taskdef is: But when the task is called it returns the error: java.lang.ClassNotFoundException: com

Re: Execution classpath question for taskdef

2011-01-20 Thread Antoine Levy-Lambert
On 1/20/11 5:27 PM, dave.alvar...@cartridgeorder.com wrote: > Thanks for this recommendation. A couple of follow up questions ... > > 1 If I add the classloader task to my custom task, does that classloader take > precedence over the classes loaded by ${ANT_HOME}/lib ? > 2. How do I add the class

Re: Execution classpath question for taskdef

2011-01-20 Thread dave.alvarado
, - Dave > ---Original Message--- > From: Antoine Levy-Lambert > To: Ant Users List > Subject: Re: Execution classpath question for taskdef > Sent: Jan 19 '

Re: Execution classpath question for taskdef

2011-01-19 Thread Antoine Levy-Lambert
On 1/19/11 2:54 PM, Michael Ludwig wrote: > > There was another thread today where the same issue arose: > > Mail task with mail.jar & activation.jar out of lib folder > > r L 19.01.11 10:31+0100 Patrick Martin57 Mail task […] > L 19.01.11 11:19+0100 Patrick Martin87 ├─> > F 19.

Re: Execution classpath question for taskdef

2011-01-19 Thread Antoine Levy-Lambert
On 1/19/11 3:26 PM, dave.alvar...@cartridgeorder.com wrote: > Let me ask this clarification question before answering yours ... > > 1. The taskdef "classpath" attribute is NOT what is used when the taskdef is > actually executed. Correct? Wrong, the classpath nested element or attribute is used.

Re: Execution classpath question for taskdef

2011-01-19 Thread dave.alvarado
ClassLoader.java:319) ... 18 more So my question remains, how do I set the classpath for when my custom task "SeleniumHTMLClient" is actually executed? Thanks, - Dave > ---Original Message--- > From: Michael Ludwig > To: user@ant.apache.org > Sub

Re: Execution classpath question for taskdef

2011-01-19 Thread Michael Ludwig
dave.alvar...@cartridgeorder.com schrieb am 19.01.2011 um 13:30 (-0600): > I have discovered that the "classpath" and "claspathref" elements that > are part of the taskdef are not used during run time Are you sure? How did you discover that? There was another thread today where the same issue ar