Hi all,

I just want to know your opinion to new concept what just comes to my mind:

mine .build files are full of <foreach item="string"> and <foreach
item="line"> which both are very unreadable. And all I need to do is to have
some kind of collection stored in property and iterate through it. So what
about to support such datatype - collection?

E.g.
  <foreach item="Line" in="${state.dir}\changes" property="folder">
    <echo message="${folder}"/>
  </foreach>

could be rewritten as (more readable)

  <collection id="changes">
    <includesfile name="${state.dir}\changes"/>
  </collection>

  <foreach item="Collection" in="changes" property="folder">
    <echo message="${folder}"/>
  </foreach>

Of couse, there should be some functions and more ways how to define
collection than includesfile to be usable.

What do you think?

Regards,
Martin



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to