On 4/29/06, Steve <[EMAIL PROTECTED]> 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.