ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robby" <zengz...@yahoo.com>
Subject Re: how to set environment variable
Date Mon, 14 May 2001 09:01:11 GMT
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: <Arvid.Amundsen@sas.no>
To: <ant-user@jakarta.apache.org>
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:zengzhon@yahoo.com]
> Sent: Monday, May 14, 2001 10:25
> To: ant-user@jakarta.apache.org
> 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


Mime
View raw message