Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 75398 invoked by uid 500); 13 Jun 2001 13:28:49 -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 75339 invoked from network); 13 Jun 2001 13:28:48 -0000 Message-ID: From: "Helliwell, Matthew" To: "'ant-user@jakarta.apache.org'" Subject: RE: Conditional task execution Date: Wed, 13 Jun 2001 14:28:20 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Doh, that'll teach me to run off a reply with concentrating. In that case how about setting a property who name is based on the value of another property. eg where os.name property you are interested in. You can then use if/unless testing if, for example, Is.Solaris is defined. Matt -----Original Message----- From: Jon Skeet [mailto:jon.skeet@peramon.com] Sent: 13 June 2001 14:16 To: ant-user@jakarta.apache.org Subject: RE: Conditional task execution >> Is it possible to execute a task only if a property has a >> specific value? > You'll be wanting to read that very nice manual and look at > the if/unless parameters to the target task. ... and then come back and say, "No, that doesn't actually do what I asked." if/unless specify whether or not to execute a task if a property is set *at all*, not if a property has a specific value. Jon ---------------------------------------------------------------------- If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. ----------------------------------------------------------------------