-----Original Message----- From: Peter Vogel Sent: Monday, May 14, 2001 10:41 AM To: '[email protected]' Subject: RE: how to set environment variable
Within a task: <env name="foo" value="bar"> Will set an environment variable with the name foo and value bar in the environment of the task that includes the env element. The documentation and my interpretation of the code seem to disagree as to whether the presence of an env tag completely empties the environment for the process invoked by the tag or not, the docs say it does, the code seems to suggest a "newenvironment" attribute on tasks that would specify whether a new environment is needed or not, but I may have missed something... Personally, I think environment management is one of those things that needs some significant improvement in ant and I began some hacking on that very concept on Friday. Basically, what I'm thinking of right now (for ease of implementation) is another attribute on a property tag called "export" if that property should be exported to the environment of all processes. I'll let you know how it goes... -Peter > -----Original Message----- > From: robby [mailto:[EMAIL PROTECTED] > Sent: Monday, May 14, 2001 1:25 AM > 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 >
