ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <>
Subject Re: Check for environment variable existence
Date Thu, 06 Dec 2001 12:13:54 GMT
Also, keep in mind that when running Ant through the wrapper scripts that
your environment classpath is already available and used by Ant and all
tasks that it runs in its own VM.

Perhaps you should discuss more about what you are planning on doing with
the CLASSPATH from the environment, because its very unusual that you'd need
access to it directly and there is likely to be a more recommended way of
doing what you're trying to do.

Ant provides system properties to you, and you will have ${java.class.path}
available already if needed.


----- Original Message -----
From: "Hannes van der Merwe" <>
To: <>
Sent: Thursday, December 06, 2001 6:17 AM
Subject: Check for environment variable existence

> In my build script I setup a property with a specific classpath. Now if
> environment variable: "CLASSPATH", is set before hand I need to include
> existing classpath into the specific classpath setup in the build script.
> What is the best way to check if the environment variable: "CLASSPATH" is
> set or not?
> Hannes van der Merwe
> Momentum Employment Benefits (IT)
> Telephone : (011) 685 4306
> Fax : (011) 685 4006
> Email :
> E-mail disclaimer
> Confidentiality Warning
> =======================
> The contents of this message and any attachments are intended solely for
> addressee's use and may be legally privileged and/or confidential. If you
> are not the addressee indicated in this message, any retention,
> distribution, copying or use of this message is strictly prohibited. If
> received this message in error, kindly notify the sender immediately by
> reply e-mail and then destroy the message and any copies thereof. The
> content and any views expressed therein are, unless otherwise stated, the
> views of the author and not those of the company or any of its management
> directors.
> Whilst all reasonable steps are taken to ensure the accuracy and integrity
> of information transmitted, the company does not accept responsibility for
> any corruption of the information or data or breach of confidentiality as
> result of electronic submission.
> When addressed to the Momentum Employee Benefits clients any opinion or
> advice contained in this e-mail is subject to the terms and conditions
> expressed in any applicable terms of business.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message