Selke, Anthony wrote:
I am putting together a CI build process and trying to do so in such a way that it is as simple as possible to add new projects.
Does CI mean "check in " or "continuous integration" (not that it's really relevant to the question)?
All of our projects are done in Visual Studio .NET and I use the <solution> tag to easily generate the build files. Many of our solutions contain one or more web applications. When I "hard code" the <webmap> nodes into the build file, everything works great. My next step is to find a way to pass into the build file (A) if I have any <map> nodes to specify and (B) the "url" and "path" for the nodes.
I tried putting <if> nodes inside my <solution> node to do property tests, but NAnt doesn't like the <if> nodes to be there. Then I tried a webmap.exists property that,
I don't think there's any way to do it with this approach. NAnt only deals with the if/unless/ifnot control facilities at the task level.
I suggest you just use a top level build script to generate a subordinate build script on the fly, and then execute it with the <nant> command. You may be able to use the <copy> task with a filterchain to take a template for the subordinate script and generate the specific one.
Gary
------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users