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
Post a Comment