-----Original Message-----
From: Nico Seessle [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 3:19 PM
To: [EMAIL PROTECTED]
Subject: Re: FW: Can't find the files
----- Original Message -----
From: "Pinar Bicioglu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 06, 2001 7:41 PM
Subject: RE: FW: Can't find the files
> Everything is working fine now. But I have a question about setting them
as
> an enviroment variables. How do we do that ? And can we solve this problem
You can do that in the following way:
1) set the environment variable
C:\> set MY_VAR=Test
What the "Test" would be in my case ? The apth of my files?
2) Tell Ant to read in your environment
Place a line like
<property environment="prefix"/>
The name "prefix" is standard right ?
in your build.xml in a place which is executed before you use these
variables
3) Use them
If you followed the example you should have a property prefix.MY_VAR which
can be used for example with the echo-task
<echo message="${prefix.MY_VAR}"/>
4) Done.
So before I use the variables I should have these two lines below.
<property environment="prefix"/>
<echo message="${prefix.MY_VAR}"/>