I don't undertand why this isn't just taking in parameters and using them as variables in the build file. Do conditional checks if need be to block out parts not needed, etc.
My environment is setup so the core of the task is as modular as possible.. and just have different targets do different things based on the parameters passed in. I use environment variables to adapt if the build file is running on different build agents (to handle file paths, etc) and for passing in variables because my CI server (teamcity) makes it very easy to pass variables to the build script using env variables. -----Original Message----- From: Brass Tilde [mailto:brassti...@gmail.com] Sent: Fri 2/6/2009 3:29 PM To: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] examples of Environment Config Files > environment config files. In my case I have a lot of the individual task > doing what they are suppose to do. However, if my supervisor puts in > Nant -D:tag=/src/Test/tags/Star1_1.0 env=prod then he wants it to point to > the production environment and run my existing task, env=dev then he wants > it to point to the development environment. Without knowing more about exactly what you're trying to accomplish, I don't know that I can help. > So the question is how do I setup or do you have an example of an > environment file that does this. I just need to see what it looks like. He > is calling it a environment configuration file. He says this is pretty > common. But I can not find a concrete example of how to do this or what one > looks like. If you're talking about conditional execution, then you'd have to wrap stuff in <if /> blocks, which is certainly possible, but tends to look ugly, and requires maintenance. If you're talking about configuring what paths are referenced, or what options are sent to applications, or something, that's simpler, but exactly what the result looks like is going to be dependent what what you're trying to do. If you can supply an example of the types of things the build file is doing, we might be able to help a little more. /bs ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users