ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <>
Subject Re: NameSpace & antlib was (Re: polymorphism)
Date Tue, 29 Apr 2003 14:32:09 GMT

Jose Alberto Fernandez wrote, On 29/04/2003 12.03:
> The proposal <antlib> provides a task <antlib> which can be used to
> load libraries manually. Al the same time there are hooks on the code
> for an autoloading mechanism to be supported. In escence, it would
> allow ANT's main() to do something like:
> 	- get all antlib.xml from the classpath ( using getResources);
> 	- process each one of the antlib.xml resources found so that
> 	  all definitions get registered.
> All the processing is provided by a static method of the Antlib task.
> In principle this was designed just for loading the core at load time,
> we could expand it to allow loading all jars (antlibs) in the classpath, which
> means all antlibs in the ANT/lib directory.

This I really liked but Costin IIRC put it down in favor of compulsory 
explicit loading.

> The main issue is how to enforce ordering to deal with dependencies
> between the antlibs.

Or simply do not deal with dependencies, ie antlibs must not (yet) 
depend on on the other, except for the core ones.

Nicola Ken Barozzi         
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)

View raw message