Brandon,
 
The <path> element does not modify the system PATH. It just allows you to define a set of files or directories that you can use elsewhere in your build file as a single unit.  For example, to pass as an argument to a program that you launch using the <exec> task.
 
NAnt does not provide support for modifying the system PATH.
 
Gert


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brandon Lonac
Sent: vrijdag 19 november 2004 3:13
To: [EMAIL PROTECTED]
Subject: [Nant-users] How to set PATH for duration of build...

I was wondering if there is a way to set the PATH variable at the beginning of the build dynamically?  I tried to use the <PATH> type before anything runs:

 

<property name="programfiles.dir" value="${environment::get-folder-path('ProgramFiles')}" />

<property name="framework.identifer" value="${framework::get-runtime-framework()}" />

<property name="framework.dir" value="${framework::get-framework-directory(framework.identifer)}" />

 

<path id="path">

      <pathelement dir="${vsnet.dir}\Vc7\bin" />

      <pathelement dir="${vsnet.dir}\SDK\v1.1\bin" />

      <pathelement dir="${framework.dir}" />

</path>

 

I need to set this b/c <cl> and <link> fail if they are not found in the path.  Is there a way to do this?

 

Thanks.

-Brandon

 

Reply via email to