ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19897] - Patch to implement the namespaced antlib + other changes
Date Tue, 15 Jul 2003 15:35:26 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19897>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19897

Patch to implement the namespaced antlib + other changes





------- Additional Comments From peter.reilly@corvil.com  2003-07-15 15:35 -------
No problem.
I want antlib files to be able to define new definers.
For example:
Assume that someone may want to have a class RunDef - like TaskDef that
extends Typedef.java and sets the adaptto and adapter classes.

<typedef name="rundef" classname="org.acme.anttasks.RunDef"/>

and then use this definition in the same antlib file:

<rundef name="x" classname="org.acme.anttasks.X"/>


I actually ran into this problem when mapping ant's conditions/filters
/mappers/selectors to an antlib using <extendtype/> and a "role" attribute
to <typedef/>

<antlib>
   <extendtype name="conditiondef">
      <typedef role="o.a.t.a.taskdefs.condition.Condition"/>
   </extendtype>
   <extendtype name="selectordef">
      <typedef role="o.a.t.a.types.selectors.FileSelector"/>
   </extendtype>

   <conditiondef name="or" classname="o.a.t.a.taskdefs.condition.Or"/>
   
   <selectordef name="or" classname="o.a.t.a.types.selectors.OrSelector"/>

</antlib>

I tried playing with add(Definer d) and addConfigured(Definer d), but
both do not work for different reasons.

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


Mime
View raw message