Just use the foreach task with a file set pattern that will only include
.build files.
BOb
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ken
Parrish
Sent: Thursday, February 21, 2008 10:14 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Walking directory trees for .build files ...
I am looking for a technique using Nant to create a 'generic' directory
walking .build file.
For example: In the following scenario, I have three project
directories, each with a .build file (Project1, Project2 & Project3).
I'd like to create a .build file one level up, in this case,
Projects.build, that will iterate over each sub-directory and execute
the three .build files feeding each with the same command line target
information as the top level build file.
I would much prefer to create this top level .build script in a generic
manner so that as new projects are added, and subordinate .build files
become available, the top level .build file will 'discover' the new
files and automatically include it in the build-thus alleviating the
need to constantly have to maintain Projects.build as projects are added
or deleted.
Projects
Projects.build
Project1
Project1.build
Project2
Project2.build
Project3
Project3.build
This seems like a fairly common scenario for managing a hierarchy of
project directories. The idea is to make any one directory the current
directory, execute Nant from that point and have all .build scripts in
the next level down executed. If it works right, the Projects.build
script would be recursive and could be copied to any directory so as to
automatically 'walk' the next level down.
Before I try to figure out this myself, I wanted to see if someone else
had already solved this problem?
Thank you.
Ken Parrish
Gomez, Inc.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users