> From: peter reilly [mailto:[EMAIL PROTECTED] > > On Saturday 17 May 2003 19:59, Costin Manolache wrote:
> > I think <taskdef> should be treated as a special <typedef> > with TaskAdapter > > as adapter. > > > > ( i.e. use <typedef> as the main definition mechanism, and > taskdef as > > a shortcut for types with optional TaskAdapter adapters ). > > This is exacty what "taskdef" is in the patch :-). It derives > from typedef and sets the adapterClass to TaskAdapter, and > the adaptoClass > to Task. The html page for taskdef in the friday patch makes > this explicit. > > I have some WorkInProgress code to allow this to be specified > in a buildfile. > > <extendtype name="taskdef"> > <typedef adapter="org.apache.tools.ant.TaskAdapter" > adaptto="org.apache.tools.ant.Task"/> > </extendtype> > > "extendtype" is a WIP name for a cut-down templating feature, it > defines new types from other types with some attributes pre set. > Well I am glad, you guys are rediscovering "role" definitions one feature at the time. :-) Jose Alberto