> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Bala
> Sent: Wednesday, January 19, 2005 12:26 AM
> To: Arnette, Bill; Gert Driesen; nant-users@lists.sourceforge.net
> Subject: Re: [Nant-users] Overriding project properties path -VC++
> 
> 
> Hi Bill,
> 
> As you said , i tried to add the lib dir to the PATH 
> envrironmental variable..
> 
> But it is not adding.. may be i was wrong in my syntax..
> 
> Can u help me to add a dir to PATH environmental variable...sample
> script will help me better.
> 
> 
> Regards,
> Bala

This is what I do:

   <property name="build.workdir"
value="${project::get-base-directory()}/WORKDIR"
unless="${property::exists('build.workdir')}"/>

   <property name="build.paths.include" dynamic="true"
 
value="C:\Development\Microsoft\WMSDK\WMFSDK9\include;${build.workdir}\Video
Integration\common;C:\Development\Microsoft\DX90SDK\include;C:\Development\M
icrosoft\DX90SDK\include\DShowIDL;C:\Development\Microsoft\DX90SDK\Samples\C
++\DirectShow\BaseClasses;C:\Program Files\Microsoft SDK\Include;C:\Program
Files\Microsoft Visual Studio .NET 2003\Vc7\INCLUDE;C:\Program
Files\Microsoft Visual Studio .NET 2003\Vc7\ATLMFC\INCLUDE;C:\Program
Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\INCLUDE;C:\Program
Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\include;${build.workdir}\Development\Microsoft\WTL\include"/>

   <property name="build.paths.lib" dynamic="true"
 
value="C:\Development\Microsoft\WMSDK\WMFSDK9\lib;C:\Development\Microsoft\D
X90SDK\Lib;C:\Development\Microsoft\DX90SDK\Samples\C++\DirectShow\BaseClass
es\lib;C:\Program Files\Microsoft SDK\Lib;C:\Program Files\Microsoft Visual
Studio .NET 2003\Vc7\LIB;C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\ATLMFC\LIB;C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\LIB"/>

      <setenv name="INCLUDE" value="${build.paths.include}"/>
      <setenv name="LIB" value="${build.paths.lib}"/>


To append to the PATH environment you could do something like:

     <setenv name="PATH"
value="${environment::get-variable('PATH')};C:\MyNewPath"/>

Hope this helps,
Bill





-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to