ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: API for setting a property reference?
Date Sat, 16 May 2009 18:25:06 GMT



--- On Sat, 5/16/09, Michael Ludwig <milu71@gmx.de> wrote:

> From: Michael Ludwig <milu71@gmx.de>
> Subject: Re: API for setting a property reference?
> To: "Ant Users List" <user@ant.apache.org>
> Date: Saturday, May 16, 2009, 12:36 PM
> Matt Benson schrieb am 14.05.2009 um
> 18:57:09 (-0700):
> > 
> > Read the whole section about antlibs in the Ant manual
> under "Concepts
> > and Types."
> 
> Thanks, Matt. Not sure how exactly that answers my
> question, which was:
> 
> > > Is there some auto-lookup feature for classes
> that attempts dynamic
> > > class loading for something like
> <namespace.MyTask/>, i.e. element
> > > name corresponding to classname?
> > > 
> > > Or did you just omit the <taskdef> for
> brevity?
> 
> So I think there is no such auto-lookup feature, and a
> <taskdef> was
> required in the example.
> 
> The special treatment of the "antlib:" namespace URI scheme
> laid out in
> the manual is similar to such auto-lookup, but requires
> additional
> configuration. I guess that's what you were pointing me
> to?
> 

Yes; the various namespacing mechanisms are the available means by which you can approximate
an automatic task configuration, the necessary operations being assignment of classes to tasknames
(the taskdefs in your antlib declaration) and Ant's being instructed where to look for said
definitions (the namespace or other declaration(s)) in your buildfile.

-Matt

> Michael Ludwig
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


      

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message