ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Seeking feedback on possible macrodef augmentation
Date Wed, 27 Sep 2006 04:10:00 GMT
On Tue, 26 Sep 2006, Peter Reilly <peter.kitt.reilly@gmail.com> wrote:

> It would however be nicer to make macrodef
> more generic. To inject the UEs into the macro
> instance.
> 
> Like:
> <macrodef name="engine">
>    <attribute name="impl">
>    <dom>
>         <service type="javax.script.ScriptEngineFactory"
> provider="@{impl}"/>
>    </dom>
>  </macrodef>
> 
> <jar jarfile="x.jar">
>     <fileset dir="classes"/>
>      <engine impl="org.me.SimpleLang"/>
>  </jar>

Yes, that would indeed be very useful, same for <presetdef>.

If it turns out to be too difficult, maybe plaing with the type
adapters instead of implementing MacroCondition, MacorSelector and
MacroFilter might be an option.

Stefan

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


Mime
View raw message