You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Marco Struck <M....@PopNet.de> on 2001/01/02 17:06:29 UTC
check of environment variables...
... is it possible ? .... I would like to check if CVS_ROOT and CVS_RSH has
been set.
--
Marco Struck
Software Development
http://www.popnet.de
Re: check of environment variables...
Posted by James Duncan Davidson <du...@x180.net>.
On 1/2/01 1:13 PM, "Nico Seessle" <Ni...@epost.de> wrote:
>> ... is it possible ? .... I would like to check if CVS_ROOT and CVS_RSH has
>> been set.
>>
> Only if you pass them to ant using -DCVS_ROOT=$CVS_ROOT (or %CVS_ROOT% on
> Windows). You can then access them as "normal" properties.
Right. Note that this is because you can't access env vars from within Java
without writing native code.
--
James Duncan Davidson duncan@x180.net
!try; do()
Re: check of environment variables...
Posted by Nico Seessle <Ni...@epost.de>.
----- Original Message -----
From: "Marco Struck" <M....@PopNet.de>
To: <an...@jakarta.apache.org>
Sent: Tuesday, January 02, 2001 5:06 PM
Subject: check of environment variables...
> ... is it possible ? .... I would like to check if CVS_ROOT and CVS_RSH
has
> been set.
Only if you pass them to ant using -DCVS_ROOT=$CVS_ROOT (or %CVS_ROOT% on
Windows). You can then access them as "normal" properties.
Nico