For background about this email, please visit: http://blogs.ittoolbox.com/visualbasic/dotnet/archives/002467.asp
I'm about to expand my template based build system to allow one build group file to reference another build group file. Each line in the CSV files contains a path to a project directory to be built. If the specified path contains a Filesets.xml file, then my script executes another nant script to perform the build for that Filesets.xml file. This extension would allow the CSV to contain a line pointing to another CSV file, which would then be launched as a new nant process.
I understand already that it's not possible to use properties to retrieve values from a child nant process. The only thing I can think of to prevent infinite recursion would be to pass a property on the child nant command that would let the script know how deep it has delved and prevent it from further recursion, but that could cause problems if set too deeply or too shallow. It would be better to create some structure that would hold the list of all the CSV files that have been executed. I'm thinking of using XmlPoke and XmlPeek to do this. Has anyone else implemented a similar process, and if so, how did you prevent infinite recursion?
Thanks!
Trane eBusiness
QED Team
Phone: 931-905-5386
Fax: 931-648-5901