Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 78863 invoked from network); 5 Mar 2002 14:36:26 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 5 Mar 2002 14:36:26 -0000 Received: (qmail 8441 invoked by uid 97); 5 Mar 2002 14:35:45 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 8385 invoked by uid 97); 5 Mar 2002 14:35:45 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 8341 invoked from network); 5 Mar 2002 14:35:44 -0000 Message-ID: <01b801c1c453$057c33c0$6401a8c0@darden.virginia.edu> From: "Erik Hatcher" To: "Ant Users List" References: <3C84D2F1.F253DC2@lifl.fr> Subject: Re: Conditionnal Task Date: Tue, 5 Mar 2002 09:35:38 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: "Romain.Rouvoy" > I want to to use different tasks depending on the value of a specific > property > So for Example when the value of the property is "VisiBroker" > I' want to execute the specific target "compile" and in the other cases > I want to use a default target named "compile" Huh? You cannot have two targets named the same. > We can execute a task if a property is set or not but I don't know how > to test the property's value ! You can have conditional 's, not tasks. The syntax is: But that only tests whether the property is set or not, not the value. If you need to check the actual value, you'll have to use to optionally set a property or not based on string equality and such. > I'm sure you understand what I mean ! :) Nope, not at all! :) But I took a stab at an answer anyway. Erik -- To unsubscribe, e-mail: For additional commands, e-mail: