ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <>
Subject RE: antlibs and classloaders #2
Date Mon, 10 May 2004 16:42:55 GMT
> From: Mariano Benitez [] 
> So, I am thinking of the following workaround for the 
> complete scope of 
> the problem:
> I create a task <antlib> that performs would look like this:
> <antlib property="fuego.antlib.defined">
>     <classpath>
>         <fileset dir="${fuego.basedir}/lib">
>             <include name="fuegoexpress-antlib.jar"/>
>             <include name="fuegoenterprise-antlib.jar"/>
>             <include name="fuegoj2ee-antlib.jar"/>
>             <include name="fuego-test-antlib.jar"/>
>         </fileset>
>     </classpath>
>     <typedef package=""/>
>     <typedef package=""/>
>     <typedef resource="fuego/tools/ant/j2ee/antlib.xml"/>
>     <typedef resource="fuego/internal/test/ant/myFile.xml"/>
> </antlib>

Would the following solve this problem generically? 

<project name="X" xmlns:mylib="antlib:my.library.package">

   This task is automatically available for every ANTLIB
   and its only function is to force the loading of the library
   if necessary. Force the lazy loading.


The above assumes somehow we manage to define the classpath required
as part of the ANTLIB itself. If not, the task could have the classpath

This looks much better than calling some task from the antlib with

What do people think?

Jose Alberto

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message