Yes, thanks... I found my problem. I had a close tag on my opening
foreach tag like <foreach blah blah /> and didn't notice it right away.
BOb
________________________________
From: Nguyen, Daniel [mailto:[EMAIL PROTECTED]
Sent: Friday, January 05, 2007 7:12 PM
To: Bob Archer; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] Nested foreach
Yes, it is. Here's one of the examples that we used. (Sorry for all
the spaces. Cut-and-paste got it all screwed up) :-(
<target name="devdeploy.projects.iterate" description="Iterate through
projects and deploy to DEV">
<foreach item="Folder" in="${Staging.Directory}/dev"
property="ProjectType.Directory">
<in>
<items>
<include name="ConsoleProjects"/>
<include name="LibraryProjects"/>
<include name="WebAppProjects"/>
<include name="WebServiceProjects"/>
<include name="WinFormProjects"/>
<include name="WinServiceProjects"/>
</items>
</in>
<do>
<foreach item="Folder" in="${ProjectType.Directory}"
property="Project.Directory">
<call target="devdeploy.project"
if="${path::get-file-name(Project.Directory) != 'UnitTestProjects'}"/>
</foreach>
</do>
</foreach>
</target>
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob
Archer
Sent: Friday, January 05, 2007 6:03 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Nested foreach
Is it possible to have nested foreach loops? Nant doesn't seem to like
it?
BOb
------------------------------------------------------------------------
-------------
A.G. Edwards & Sons' outgoing and incoming e-mails are electronically
archived and subject to review and/or disclosure to someone other
than the recipient.
------------------------------------------------------------------------
-------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users