ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nico Seessle" <n...@apache.org>
Subject Re: Using System Environment variables
Date Mon, 07 May 2001 08:34:32 GMT
----- Original Message -----
From: "Stephen Graham" <sg3@bigpond.com>
To: <ant-user@jakarta.apache.org>
Sent: Monday, May 07, 2001 10:10 AM
Subject: Re: Using System Environment variables


> The most common way of doing this is to pass the environment variables in
on
> the command line, using the '-D' option.
>
> I don't know any other way of getting access to environment variables from
> within the build script.
>

<property environment="env"/>

will give you a property named "env.TOMCAT_HOME" for the environment
variable "TOMCAT_HOME". It can then be referenced using ${env.TOMCAT_HOME}.

Nico



Mime
View raw message