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 [EMAIL PROTECTED]  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to