> What's the benefits? I can't see from here. 

* I've created a custome task called <component> that works like this:

<component buildfile="source/console/default.build"/>
<component buildfile="source/gui/gui.build"/>

This task sets the following properties:

component.console = "source/console/default.build"
component.gui = "source.gui/gui.build"
component.all = "console gui"

I can now iterate over each of the components in my buildfile using:

<foreach type="String" property="current" in="${component.all}">
    <nant buildfile="${component.${current}}"/>
</foreach>



* It opens the door for functions.  For example:

<property name="date" value="${guid()}"/>

This would set the property 'id' to a guid.  If the function takes
parameters you need to expand those as well.  Ie,

<echo message="id is '${string-length(${id})}' characters long."/>


-------------------------------------------------------
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

Reply via email to