James Duncan Davidson wrote:
> > I suggested a while ago to have the concept of a <tasklib name="..."
> > classpath="...">
> > which allows developers to provide their own libraries of <tasks> like
> <xslt> or
> > others.
> > Then when declaring a task, one may specify the name of the tasklib it
> comes
> > from: <taskdef name="..." classname=... tasklib=name> or we could have
> <tasklib>
> >
> > declare these tasks directly in some form of descriptor. Something like
> taglibs
> > for JSP.
> >
> > That would allow people write anything they want and having it separate
> from the
> > ANT
> > distribution.
>
> Interesting. I think that you could achieve the same effect by having a
> classpath definition instead of a tasklib. Tasklibs sound complicated to me,
> especially when it should just be a taskname=classname mapping where the
> classname is a class on the classpath. Using this, the real problem that we
> have is the inability to expand the classpath at will for the scope of a
> project.
>
There are two reasons for wanting tasklibs and different classloaders:
(1) You want to have a way to say: this sub-build requires such and such support
without needing to know it globally, which is required when using the
classpath.
(2) After we have lots of people contributing lots of stuff, you want to be able
to
isolate the libraries apart to avoid any nasty conflict, except for the ANT
core which
lives in the CLASSPATH, each library can use its own stuff.
Additionally, having libraries may allow things like the library declaring its
own tasks,
so like core, the action of defining the library declares its tasks implicitly.
This is a
little more of work, but should not be difficult if we use XML :-)
If I ever get some time I'll try to work on it.
Jose Alberto
--
------------------------------------------------------------------------
Jose Alberto Fernandez 500 Oracle Parkway, M/S 9op4
Development Manager Redwood Shores, CA 94065
ORACLE Corp. Phone: (650) 506-8830
Java Products Group Fax: (650) 506-7303
Languages & Obj-Relational Tech Email: [EMAIL PROTECTED]
begin:vcard
n:Fernandez;Jose Alberto
tel;work:(650) 506-8830
x-mozilla-html:TRUE
org:Oracle Corp. <A HREF="http://www.oracle.com/go/?&URL=http://www.oracle.com/"><img src="http://www.oracle.com/signature/obanner.gif"></A>;Java Products Group <A HREF="http://www.oracle.com/go/?&URL=http://www.oracle.com/">Visit us at http://www.oracle.com</A>
version:2.1
email;internet:[EMAIL PROTECTED]
title:Development Manager
adr;quoted-printable:;;500 Oracle Parkway=0D=0AM/S: 4op9;Redwood Shores;California;94065;USA
x-mozilla-cpt:;19904
fn:Fernandez, Jose Alberto
end:vcard