Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 97561 invoked from network); 2 Jan 2001 11:46:16 -0000 Received: from mail.alphalink.com.au (203.24.205.7) by h31.sny.collab.net with SMTP; 2 Jan 2001 11:46:16 -0000 Received: from donalgar (d78-ps1-mel.alphalink.com.au [202.161.105.206]) by mail.alphalink.com.au (8.9.3/8.9.3) with SMTP id WAA08807; Tue, 2 Jan 2001 22:46:16 +1100 Message-Id: <3.0.6.32.20001229233607.00944100@latcs2.cs.latrobe.edu.au> X-Sender: pjdonald@latcs2.cs.latrobe.edu.au X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Fri, 29 Dec 2000 23:36:07 +1100 To: ant-user@jakarta.apache.org From: Peter Donald Subject: Re: Need if/unless features Cc: , In-Reply-To: <053d01c06c51$06e4c2a0$020a0a0a@alsatian> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N At 02:54 22/12/00 -0500, Jason Rosenberg wrote: >I would like to be able to have something similar to the if/unless >attributes for the tag, which causes the if/unless gating >to happen before any of the dependent targets are evaluated. >There are cases where I do know that I don't want a target, or any >of its dependent targets to be evaluated, if a certain condition >is true. Agreed - this is a problem ant2.0 will address hopefully. Many people have asked for it in one way or another ... What I suggest is something like It is not efficient or pretty but it does work ;) >Currently, what happens when you have an if and an unless in the >same target? Is it allowed. Are the 2 conditions "anded" or "ored"? don't know what the actual behaviour is but it should be undefined ;) Cheers, Pete *-----------------------------------------------------* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-----------------------------------------------------*