ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Huxi LI" <hux...@gmail.com>
Subject Re: Asking for new feature: Self-Discovery of service to make Ant a real extensible system
Date Sat, 29 Apr 2006 22:10:45 GMT
On 4/29/06, Steve <mcconnell@apache.org> wrote:
>
> The principal of self-discovery is possible based on the namespace
> controls
> already in current Ant.  By adding a custom ComponentHelper you can
> intercept task loading requests.  For example, the ComponentHelper class
> includes the following operation:
>
>     public Object createComponent( String name )
>     {
>         ....
>     }
>
> In the above method invocation the 'name' parameter is supplied in the
> form
> 'namespace':'task'.  If the namespace is a manageable namespace (i.e.
> something you can use to resolve the actual resources), then you can auto
> load the task.
>
> An example of this approach is available in the Transit antlib [1].
>
> Cheers, Steve.
>
> [1] http://www.dpml.net/transit/tasks/index.html
>



Thanks for the reply. It is an interesting suggestion.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message