ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scot P. Floess" <sflo...@nc.rr.com>
Subject Re: AW: Taskdef classpath does not work - partII
Date Thu, 28 May 2009 16:39:43 GMT

So, how do you construct your class path?

Also, what is the exception?

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

> Hello,
>
> I have some additional information:
>
> My classpath is very long.
> When I change the classpath order an exception happen somewhere else!
>
> Is there a restriction of the length of a classpath that will be handled using taskdef?
>
> Greetings
>
> Jürgen
>
>
> -- 
> Jürgen Knuplesch
>
> -----Ursprüngliche Nachricht-----
> Von: Knuplesch, Juergen [mailto:Juergen.Knuplesch@icongmbh.de]
> Gesendet: Donnerstag, 28. Mai 2009 16:50
> An: Ant Users List
> Betreff: Taskdef classpath does nor work
>
> 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-unsubscribe@ant.apache.org For additional commands, e-mail:
user-help@ant.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@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

Mime
View raw message