ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramu Sethu" <sra...@yahoo.co.in>
Subject Re: How do I set a classpath for my custom task?
Date Wed, 21 Nov 2007 04:43:44 GMT
HI todd

Have you tried the following option ??
1. -lib option
2. classpath attribute in taskdef


On Nov 21, 2007 2:15 AM, todd runstein <toddrun@gmail.com> wrote:

> I'm writing an ant task that calls a Java class named Engine.  Engine
> is in a jar file that is included in my taskdef using the classpath
> tag.  This all works great.
>
> The problem I'm having is that one of Engine's methods calls
> "Class.forName()", trying to dynamically add a class file that is not
> in it's jar file.  Here I'm getting a ClassNotFoundException.  I've
> tried a few things to manually set the classpath that Ant uses, but
> I'm just hacking aimlessly and have had no luck.  Could someone give
> me some direction to manually adding to the classpath that Engine will
> ultimately work with?
>
> Thanks in advance!
>
> Todd
>
> --
>
>
> ----------------------------------------------------------------------
> The only "dumb question" is the one you were too afraid to ask.
> ________________________________________
> Check out RouteRuler - Free software for runners, cyclists, walkers, etc.
> http://routeruler.sourceforge.net
> ________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
Thank you
Ramu S

 If A is success in life, then A equals x plus y plus z. Work is x; y is
play; and z is keeping your mouth shut.
- Albert Einstein

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message