>From: "John Debay" <[EMAIL PROTECTED]>
>Sent: Thursday, September 02, 2004 7:42 PM

> I want to create a NAnt build script that can easily handle either debug
or
> release builds, or both. In other words, from the command line, I want to
be
> able to do any of:

I strongly encourage you to look at NUnit's NAnt file ( at
http://cvs.sourceforge.net/viewcvs.py/nunit/nunit20/nunit.build?rev=1.30&view=log )
to see how it can be done cleanly. You can even cut and paste much of the
setup code .

The NUnit NAnt script very cleverly lets you say things like:
   nant build-all                        # For every configuration
   nant release build-each         # For just the release build on all
frameworks
   nant debug net-1.1 build       # For just the debug build on the 1.1
framework

and various other permutations.  It does this without requiring -D on the
command line, thus sidestepping the -D read-only issue.  The configuration
aspects of this file are independent of the project-specific aspects, so
it's pretty easy to adapt it to other projects.

Gary



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to