I don't see any mistake so far (but it's friday afternoon:) on the iteration point.
Could you try adding a <echo message="hello ${filename}"/> inside the for loop, before the exec (so we can see if at least the iterating syntax is really good ?).
cheers
Thibaut
2005/9/23, Andy Lindeman <[EMAIL PROTECTED]>:
Hello-
I'm wanting to iterate through all the subdirectories of my base directory
and perform an action on any file named AssemplyInfo.cs. I haven't been
able to get the correct syntax as of yet- hoping someone can point out what
I have wrong.
<target name="SetVersion" description="Set Version">
<fileset basedir="." id="projects">
<include name="**/AssemblyInfo.cs"/>
<include name="**/CommonAssemblyInfo.cs"/>
</fileset>
<foreach item="File" property="filename">
<in>
<items refid="projects" />
</in>
<do>
<exec program="CSCRIPT" commandline="${UPDATESCRIPT}
${filename} />
</do>
</foreach>
</target>
Thanks much for any help! Andy
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users
--
Thibaut Barrère
LoGeek
[tel] +33 6 85 33 40 88
[mail] [EMAIL PROTECTED]
[blog] http://www.dotnetguru2.org/tbarrere