Hello Ben,

Have you tried with to <taskdef> your custom task with
classpath nested tag:
<taskdef classname="org.myorg.MyTask">
  <classpath>
  <!-- location to your jars here -->
  </classpath>
</taskdef>

HTH Ivan
--- Ben Gill <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> My custom Ant task relies on the Spring jar files,
> but whatever I try, I get 
> a class not found exception..
> 
> I read a lot of posts on this and saw Eric's article
> here:
> 
>
http://www.fawcette.com/javapro/2003_02/magazine/features/ehatcher/
> 
> But I cannot believe I have to spawn off a JVM to
> pick up the spring jar's 
> do I?
> 
> and I really dont want to force any user that uses
> my task to copy the jar's 
> into their $ANT_HOME/lib...
> 
> Has anyone got a nice, tidy way of making 3rd party
> jar files available to a 
> custom task?
> 
> Thanks
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to