Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 34565 invoked by uid 500); 13 Apr 2001 01:41:15 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 34556 invoked from network); 13 Apr 2001 01:41:14 -0000 Message-Id: <5.0.0.25.2.20010412182408.036a0bf0@popeye.llnl.gov> X-Sender: e669350@popeye.llnl.gov X-Mailer: QUALCOMM Windows Eudora Version 5.0 Date: Thu, 12 Apr 2001 18:40:37 -0800 To: ant-user@jakarta.apache.org From: "N. J. O'Neill" Subject: RE: environment variables In-Reply-To: <9B3E950CB293D411ADF4009027B0A4D2FD6BB3@PARSV011> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N But there doesn't seem to be a way to control execution of a target based=20 on the value of a property. For example, I want to have a target that only= =20 executes if the OS is "SunOS". I can't see a way to use either the=20 'property' task or the 'available' task to set a property based on whether= =20 the value of ${os.name} is "SunOS" or not. At 10:27 AM 4/12/01, Stephane Bailliez wrote: >Take a look at the documentation: >http://jakarta.apache.org/ant/manual/index.html > >- task property (environment attribute) >- task available >- target conditional execution (if/unless attributes) > >-- > St=E9phane Bailliez > Software Engineer, Paris - France > iMediation - http://www.imediation.com > Disclaimer: All the opinions expressed above are mine and not those from= my >company. > > > > > -----Original Message----- > > From: Scott_Carter@i2.com [mailto:Scott_Carter@i2.com] > > Sent: Thursday, April 12, 2001 8:07 PM > > To: ant-user@jakarta.apache.org > > Subject: environment variables > > > > > > Is there a way to get the value of environment variables and perform > > certain actions based on certain values? > > > > thanks - Scott > > ------------------------------------------------------------- Neil J. O'Neill Information Management & Graphics Group Email: njoneill@llnl.gov Lawrence Livermore National Lab. Phone: (925) 424-3023 P.O. Box 808, Mailstop L-561 FAX: (925) 423-8704 Livermore CA, 94551-0808