Hi ,

    I need build.xml to set an environment variable for windows to use,
actually source safe needs the variable "SSDIR",  if i use
    <exec executable="cmd.exe" os="Windows 2000">
       <arg value="/C set ssdir=\\sourcesafe_server\dir"/>
    </exec>
it seems not working properly since it will terminate after setting.
but if I change /C to /K, it doesn't work either, since it cannot
go back to the current build session...what should i do?
     thanks for your help...  :-)

robby


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 14, 2001 4:41 PM
Subject: RE: how to set environment variable


> Hi.
> I'm not sure if I understand exactly what you mean...
> Do you want build.xml to use an environment variable from windows, or do
you
> want build.xml to set an environment variable for windows to use?
>
> By the way: What version of windows are you using...
>
> -- Arvid
>
> -----Original Message-----
> From: robby [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 14, 2001 10:25
> To: [EMAIL PROTECTED]
> Subject: how to set environment variable
>
>
> Hi all,
>
>      I'm a new user of ant, just want to know what the tag i need
> to use to set an environment variable in windows. it works just
> as typing
>          set a=b
> in Dos prompt.
>      Can anyone help me? thanks.
>
> robby
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to