ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Les Hughes <leslie.hug...@rubus.com>
Subject RE: Access environment variables within ANT?
Date Tue, 13 Feb 2001 15:30:10 GMT

Hi,

Use ant -Denv.MICK=%MICK% on win or ant -Denv.MICK=$MICK on unix. But I
prefer to use a build.properties file and a <property> tag. The props file
is mapped out of our SCM on a per-host basis.

Bye,
Les
(Making up for his recent ant-dev missing file blunder....)


> -----Original Message-----
> From: M.A.Dunphy [mailto:madunphy@bigfoot.com]
> Sent: 13 February 2001 15:16
> To: Ant-User (E-mail)
> Subject: Access environment variables within ANT?
> 
> 
> Hi,
> 
> Is it possible to access environment variables within ANT? 
> e.g. If I create
> an environment variable MICK, is there any way of access in 
> within ant, ie
> ${env.MICK}
> 
> Thanks
> 
> 

Mime
View raw message