I guess this thread is a little
long in the tooth now, but I thought I'd share my anecdote - Originally
I too, found myself thinking it couldn't possibly be worth converting
my beautifully scripted batch file to NAnt. I also had a whole swag of
environment variables that I had to manage in my
Grab a nightly build and use the brand new task. It should do
exactly what you're after.
and the fact that .net 1.1 doesn't support setting vars is an omission
rather than security feature as .net 2.0 supports it.
as for why nant is better than batch :
- better error handling
- portability - proba
>- Original Message -
>From: "Merrill Cornish" <[EMAIL PROTECTED]>
>Sent: Monday, February 07, 2005 9:52 PM
> My questions for any of you are:
>
> * Is there a better way in NAnt to getting the environment
variables set for each ?
>
> * What arguments can I use to show that despite its
f
> Eric Deslauriers
> Sent: dinsdag 8 februari 2005 4:18
> To: Merrill Cornish; nant-users@lists.sourceforge.net
> Subject: RE: [Nant-users] NAnt vs. Batch files
>
> Merrill,
>
> > * Is there a better way in NAnt to getting the environment
> variables
> set
>
Merrill,
> * Is there a better way in NAnt to getting the environment variables
set
> for each ?
Aha, finally I get to give back!
If he's using 0.85, please see the below, the sum of a discussion Ian
MacLean and I had a while ago on this list (BTW, this is still possible
in 0.84, just uglier)..
NAnt is open source :-) . We can just add a task which uses the
SetEnvironmentVariable() API function. Interoping it in C# is not a
big problem. It would take only two lines. Anybody interested to add
it into the contrib project? :-)
IMHO, It is not unsafe code and hence can be easily incorporate