Originally I imagined an env attribute just for the exec task, for instance

<exec program="foobar.exe">
   <env key="foo" value="bar" />
</exec>

Of course, it might be useful if the env attribute could be used for other
tasks as well.

Patrick



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:nant-users-admin@;lists.sourceforge.net]On Behalf Of Ian MacLean
> Sent: Donnerstag, 31. Oktober 2002 19:06
> To: Smith, Eric V.
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Nant-users] Environment
>
>
> Sounds like a good idea for new task. Unfortunately the .Net framework
> has no facilites for setting env vars ( believe it or not ) so this
> would have to use PInvoke or managed C++.
>
> Ian
>
> >
> >
> >
> >>-----Original Message-----
> >>From: [EMAIL PROTECTED]
> >>[mailto:nant-users-admin@;lists.sourceforge.net]On Behalf Of
> >>Patrick Näf
> >>Sent: woensdag, oktober 30, 2002 3:26 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: [Nant-users] Environment
> >>
> >>
> >>I'm looking for a way to set one or more environment
> >>variables when running
> >>an external program with the <exec> task. I didn't see any
> >>documentation for
> >>this, nor could I find any hint when I snooped around in the
> >>source files of
> >>the latest nightly build.
> >>
> >>Have I missed something?
> >>
> >>Patrick
> >>
> >>
> >
> >
> >-------------------------------------------------------
> >This sf.net email is sponsored by: Influence the future
> >of Java(TM) technology. Join the Java Community
> >Process(SM) (JCP(SM)) program now.
> >http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
> >_______________________________________________
> >Nant-users mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/nant-users
> >
> >
> >
> >
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>



-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to