Scenario:



Base directory (location of .build file) is "E:IAP DevSource".


Under this are sub-project directories: a, b, c etc...


In SOME sub-projects are files matching the template '*.sq?'. I need to
execute a task (exec) on each matching file found.




Nexted <foreach... /> loops almost do the trick, but doesn't seem to support
pattern matching for item="file". For example the following throws a script
error:


            <foreach item="File" in="*.sq?" property="filename">


                <echo message="${filename}"/>


            </foreach>




So, maybe I should use File Sets? But I can find the magic incantation for
what I want.




When executing the task I need to have the full path to the target file
passed to the command:


            <exec program="myTask" commandline="E:IAP
DevSourceAxxx.sqx"/>




Can anyone help?




tonyB.





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to