ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chappell, Simon P" <Simon.Chapp...@landsend.com>
Subject RE: valueof environnement variable
Date Wed, 13 Mar 2002 17:31:08 GMT
To get a copy of the current environment variables into Ant, use:

<property environment="env" />

This gives you a new "namespace" or "prefix" (use which ever term you like) of, in this case,
"env" so that you can access an environment variable thusly:

<path id="base.path">
    <pathelement path="${env.CLASSPATH}" />
    ...
</path>

Simon

-----------------------------------------------------------------
Simon P. Chappell                     simon.chappell@landsend.com
Java Programming Specialist                      www.landsend.com
Lands' End, Inc.                                   (608) 935-4526


>-----Original Message-----
>From: Romain.Rouvoy [mailto:Romain.Rouvoy@lifl.fr]
>Sent: Wednesday, March 13, 2002 11:22 AM
>To: Ant User Mailing-List
>Subject: valueof environnement variable
>
>
>Hi !
>
>How can I obtain the value of an existing environment variable ?
>
>Thanks,
>Romain
>
>
>-- 
>R. Rouvoy
>
>------------------------------
>Romain ROUVOY <rouvoy@lifl.fr>
>GOAL Team - LIFL (Laboratoire d'Informatique Fondamentale de Lille)
>USTL Lille 1 - France
>
>--
>To unsubscribe, e-mail:   
><mailto:ant-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
<mailto:ant-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message