ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: [PATCH] Definer to allow types/tasks from the same jar to work
Date Fri, 24 May 2002 16:20:59 GMT

----- Original Message -----
From: <costinm@covalent.net>
To: "Ant Developers List" <ant-dev@jakarta.apache.org>
Sent: Friday, May 24, 2002 6:49 AM
Subject: Re: [PATCH] Definer to allow types/tasks from the same jar to work


> On Fri, 24 May 2002, Magesh Umasankar wrote:
>
> > It is a nice-to-have, yes, but I don't see it as a bug
> > in 1.5.  At least I would need some convincing to call
> > it a bug ;-).  Depending upon that, it may or may not
> > go into 1.5 branch.
>
> Acording to ant 1.5 docs, you can define custom tasks and types
> with <taskdef> and <typedef>. It is also a documented feature that
> both taskdef and typedef can use a user-defined classpath to
> load the implementation classes.
>
> If a user-defined task uses a user-defined type you get a
> ClassCastException.
>
> To me that means that <taskdef>/<typedef> with user-defined
> classpath is broken.
>
> Please take a look at jakarta-tomcat-connectors/jk/native2/build.xml
> and apache2-cpptasks target as an example. It won't work with ant1.5
> without the patch.

ahh, that explains one of my problems; why I couldnt use references to <lib>
datatypes in the <cc> task without putting them all into the ANT_HOME\lib
before declaring them.

As far as I am concerned, this is a bug

-stve


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message