Re: Check for environment variable existence

2001-12-06 Thread Stefan Bodewig
On Thu, 6 Dec 2001, Hannes van der Merwe [EMAIL PROTECTED] 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

RE: Check for environment variable existence

2001-12-06 Thread Hannes van der Merwe
Maybe it is a stupid question, but how should I do that? -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 1:39 PM To: [EMAIL PROTECTED] Subject: Re: Check for environment variable existence On Thu, 6 Dec 2001, Hannes van der Merwe

Re: Check for environment variable existence

2001-12-06 Thread Erik Hatcher
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,

Re: Check for environment variable existence

2001-12-06 Thread Stefan Bodewig
On Thu, 6 Dec 2001, Hannes van der Merwe [EMAIL PROTECTED] wrote: Maybe it is a stupid question, but how should I do that? Probably more a sign of a flawed documentation (patches are always welcome). First, define the classpath that you want to use and don't care for the environment variable.

Re: Check for environment variable existence

2001-12-06 Thread Stefan Bodewig
On Thu, 6 Dec 2001, Erik Hatcher [EMAIL PROTECTED] wrote: Ant provides system properties to you, and you will have ${java.class.path} available already if needed. But this will contain classes that are not in the CLASSPATH environment (all stuff from ANT_HOME/lib). Stefan -- To unsubscribe,

Re: Check for environment variable existence

2001-12-06 Thread Erik Hatcher
for environment variable existence On Thu, 6 Dec 2001, Erik Hatcher [EMAIL PROTECTED] wrote: Ant provides system properties to you, and you will have ${java.class.path} available already if needed. But this will contain classes that are not in the CLASSPATH environment (all stuff from ANT_HOME/lib