Hello,
I am attempting to convert one of my major build
scripts, created in NMake to NAnt and I was wondering if there are some go
examples on how to do some of the stuff? I am still fairly new to NAnt so
some of this may be easy, but I do not know the easy steps as of
yet.
What we have in our
nmake build scripts are the ability to build each project
from within a solution file at a time
and currently have the build stop at the first error. The way our scripts
are made are that we can then skip
the failed project and continue on to the next component within the solution file. Once done then
we can run the build again and this time it will only go through the components
that failed to build and attempt to build them again.
We wanted to do the
same thing in NAnt, build only one project at a time from the main solution file
and if there was a error then the target project would be recorded in a
failed.txt file for later rebuild. Once the build was done and there were
errors then we would get the fixed source and run the build again, but this time
in rebuild mode. This mode would then simply get the projects that failed,
from the failed.txt file, and rebuild only them.
We also like the
ability to be able to build a single component only if
desired.
Now what is the norm
for building projects from scratch to finish? Does everyone simply run the solution file and
then if there are any build errors they simply get the updated source, for the
projects that failed and were fixed, run the build again, without deleting any
of the built projects, and therefore it will simply run the solution in build
mode and only build the projects that failed to build, or were not built in the
first run of the build?
Any help/samples you
can provide would be greatly appreciated.
Tim Mayert