Hi Thibaut-
Thanks for your help. I replaced my exec line w/ the echo- and it works!
Apparently I have a problem with my exec line.
So close... I'm only in my 4th hour of NAnt usage- and I'm finding this
tool to be fabulous.
Thanks- I'm sure I'll be able to determine what's wrong w/ my exec line.
Andy
----Original Message Follows----
From: Thibaut Barrère <[EMAIL PROTECTED]>
Reply-To: Thibaut Barrère <[EMAIL PROTECTED]>
To: Andy Lindeman <[EMAIL PROTECTED]>
CC: nant-users@lists.sourceforge.net
Subject: Re: [Nant-users] how do I iterate through directories doing an
action on certain named files
Date: Fri, 23 Sep 2005 15:39:37 +0200
Hi andy
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
-------------------------------------------------------
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