Bill,
Just use the <environment> child element of <exec> :
<exec program="...">
<environment>
<option name="INCLUDE" value="..." />
</environment>
</exec>
Note: we might change the syntax in the near future, as we're planning on
adding a more powerful construct to specify environment values (that would
also include better support for PATH-like environment variables).
Gert
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Arnette, Bill
> Sent: donderdag 4 november 2004 7:20
> To: '[EMAIL PROTECTED]'
> Subject: [Nant-users] HOWTO set environment variables in Nant scripts?
>
>
>
> In my first attempt at using Nant for VS.Net 2003 C++ builds,
> I am execing
> out to devenv rather than using the solution task (neither
> the solution task
> nor slingshot doesn't seem to handle my projects very well).
> For automated
> builds, I would like to set the INCLUDE, LIB, etc environment
> variables and
> use the /useenv switch to devenv. I can't find anything in
> the docs or
> google except how to get an environment variable. Can this be done?
>
> TIA,
> Bill
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
>
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users