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.
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, when true, used a <foreach> on a known text
file to pull the url/path values from a project specific location, but the
<solution> tag didn't seem to like that either.
Also, NAnt gets
upset at my use of <ifnot>, but the current documentation doesn't have a
good example of how to use the _expression_ form of <if> to test if property
X has value Y. Anyone have success using this?
And is there a way
to tell NAnt that warnings should not report failure?
Sorry for all the
questions. I'm just trying to get this set up in an easily maintain manner
and running into a few roadblocks.
Tony