Hello Scott,

No, Because, when I add the jar to the Ant classpath (now ist on the classpath 
twice), everything works!

Probably my classpath is too long.

Greetings Juergen 


-- 
Jürgen Knuplesch                    www.icongmbh.de
icon Systemhaus GmbH                Tel. +49 711 806098-275
Sophienstraße 40                    
D-70178 Stuttgart                   Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121 
-----Ursprüngliche Nachricht-----
Von: Scot P. Floess [mailto:sflo...@nc.rr.com] 
Gesendet: Donnerstag, 28. Mai 2009 17:25
An: Ant Users List
Betreff: Re: Taskdef classpath does nor work


Is there some supplementary class that that class requires that isn't there 
when you use it as you have it defined?

On Thu, 28 May 2009, Knuplesch, Juergen wrote:

> Hello,
>
> I do a taskdef with 1.7.1 like:
>
> <taskdef name="myTask"
>    classname="myJavaClass">
>   <classpath refid="java.classpathid"/> </taskdef>
>
> When I display the classpath referenced in java.classpathid I see a certain 
> jar.
> When I run the task it fails, because it can not find a class that is based 
> in that certain jar.
>
> When I add the jar in the classpath of Ant it works.
>
> This is strange, because lots of other classes and jars are found 
> using this task. (The task starts does a lot and the final step fails)
>
> Has Ant a problem with long classpaths or does it support only one 
> classpath for all taskdefs???? (doesnt make sense to me)
>
> I can not find the reason. Please help!
>
> Greetings Jürgen
>
>
> --
> Jürgen Knuplesch
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional 
> commands, e-mail: user-h...@ant.apache.org
>
>

Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-890-8117 (Work)

Chief Architect JPlate   http://sourceforge.net/projects/jplate
Chief Architect JavaPIM  http://sourceforge.net/projects/javapim

Architect Keros          http://sourceforge.net/projects/keros

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to