It looks like when running the <foreach> task over a set of files in a
particular directory, the task is run on each file in alpha order. For
example, running the following nant task:
<foreach item="File" property="filename">
<in>
<items>
<include name="d:\foo\*.*"/>
</items>
</in>
<do>
<echo message="${filename}"/>
</do>
</foreach>
Where d:\foo contains the following files:
00_text.txt
01_text.txt
10_text.txt
100_text.txt
text.txt
z_text.txt
The output is:
[echo] d:\foo\00_text.txt
[echo] d:\foo\01_text.txt
[echo] d:\foo\100_text.txt
[echo] d:\foo\10_text.txt
[echo] d:\foo\text.txt
[echo] d:\foo\z_text.txt
My question is can I depend on this every time? I don't see this
documented anywhere?
Thanks,
Mike.
-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
Nant-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users