>-- Original Message -- >From: "Jaroslaw Kowalski" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Cc: "NAnt Developers" <[EMAIL PROTECTED]> >Subject: [nant-dev] LONG: New idea for handling build configurations >Date: Sat, 28 Jun 2003 12:16:03 +0200 > >
>THE SOLUTION - IDEA >=================== ... >build file: > > Build file would contain a bunch of: > > <configuration name="debug"> > <property name="default.jsc.debug" value="false" /> > <property name="default.csc.debug" value="true" /> > <property name="default.debug" value="true" /> > <property name="default.csc.outdir" value="bin/debug" /> > </configuration> > > <configuration name="release"> > <property name="default.jsc.debug" value="false" /> > <property name="default.csc.debug" value="true" /> > <property name="default.debug" value="true" /> > <property name="default.csc.outdir" value="bin/release" /> > </configuration> > I really like this idea. Adding the <configuration> tag would be great! >As you can see I propose some form of default values inheritance. For >example "csc" task whould look for the value for its "debug" parameter by >looking at (in order): > > - the value specified in <csc> task > - if it's not found, get it from "default.csc.debug" > - if it's not specified, get the value from "default.debug" > >And all <csc> tasks would be reduced to: > ><csc target="winexe" output="test.exe"> > <sources> > </sources> ></csc> > >instead of (ugly in my opinion): > ><csc > target="winexe" > output="${something.outdir}/test.exe" > debug="${something.debug}" > optimize="${something.optimize}" > define="${something.define}"> ><sources> ></sources> >... ></csc> > >The idea is to have ultra-clean, yet very flexible build files that would >be >very easy to create and maintain. > >I think it would be simple to implement it using current model of >properties. > >What do you think? Of course, in this way, build files would be "less dirty" and more readable... Again, I like the idea. Gius_. > >Jarek > > > >------------------------------------------------------- >This SF.Net email sponsored by: Free pre-built ASP.NET sites including >Data Reports, E-commerce, Portals, and Forums are available now. >Download today and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 >_______________________________________________ >nant-developers mailing list >[EMAIL PROTECTED] >https://lists.sourceforge.net/lists/listinfo/nant-developers ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users