Setting Environment variables for nmake through ANT for entire build -


how can set environment variables nmake through ant entire build?

ant can't set environment variables directly. can read them using property task.

however, can use exec task execute operating system's environment variable-setting command. since you're using nmake assume you're on windows, offers setx command purpose.

<exec executable="setx.exe">   <arg line="_car_park south"/>   <arg line="/m"/> </exec> 

the /m flag sets _car_park variable south in machine's environment (setx defaults user's environment).


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -