Shaw, Gerry wrote:
>What do people think of this feature:
>
><property name="alpha" value="b"/>
><property name="bravo" value="c"/>
><property name="charlie" value="c"/>
><property name="abc" value="123/>
>
>Now notice how alpha, bravo, charlie expand to abc which then expands to
>123.
>
><echo message="${${alpha}${bravo}${charlie}} = 123"/>
>
>
>
My first question is 'How do you know that value="b" is supposed to be
expanded and not just the literal "b" ? ' and how does nant know that
abc = "123" means a=1, b=2 and c=3 ? Initially it seems like this would
introduce some user confusion. Maybe I'm missing somthing though.
>
>The main use for this feature is for something like this:
>
><property name="core" value="source/NAnt.Core.build"/>
><property name="console" value="source/NAnt.Console.build"/>
><property name="dotnet" value="source/NAnt.DotNetTasks.build"/>
>// ...
>
><property name="all" value="core console dotnet"/>
><foreach type="String" property="config" in="${all}">
> <nant buildfile="${${config}}"/>
></foreach>
>
>
how about re-using the propertygroup stuff you proposed last week like
this :
<propertygroup name ="subbuilds" >
<property name="core" value="source/NAnt.Core.build"/>
<property name="console" value="source/NAnt.Console.build"/>
<property name="dotnet" value="source/NAnt.DotNetTasks.build"/>
</propertygroup>
<foreach type="String" property="config" in="${subbuilds}">
<nant buildfile="${${config}}"/>
</foreach>
or somthing like that.
Ian
--
"The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a
criminal offence." (Edsger Wybe Dijkstra)
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers