ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hannes van der Merwe <Hann...@meb.co.za>
Subject RE: Check for environment variable existence
Date Thu, 06 Dec 2001 12:01:41 GMT
Maybe it is a stupid question, but how should I do that?

-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: Thursday, December 06, 2001 1:39 PM
To: ant-user@jakarta.apache.org
Subject: Re: Check for environment variable existence


On Thu, 6 Dec 2001, Hannes van der Merwe <Hannesv@meb.co.za> wrote:

> What is the best way to check if the environment variable:
> "CLASSPATH" is set or not?

<property environment="env" />

now either env.CLASSPATH exists or it doesn't and you can use
if/unless attributes based on it.

Stefan

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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message