From user-return-35717-apmail-ant-user-archive=ant.apache.org@ant.apache.org Thu Aug 07 10:33:09 2003 Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 14559 invoked by uid 500); 7 Aug 2003 10:33:07 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 14437 invoked from network); 7 Aug 2003 10:33:06 -0000 Received: from moutng.kundenserver.de (212.227.126.171) by daedalus.apache.org with SMTP; 7 Aug 2003 10:33:06 -0000 Received: from [212.227.126.205] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19ki4v-0002tJ-00 for user@ant.apache.org; Thu, 07 Aug 2003 12:33:05 +0200 Received: from [217.228.254.238] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 19ki4u-0004Qf-00 for user@ant.apache.org; Thu, 07 Aug 2003 12:33:04 +0200 Message-ID: <3F322A79.3080403@cyberspaceroad.com> Date: Thu, 07 Aug 2003 12:31:21 +0200 From: Adam Hardy Reply-To: user@ant.apache.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030701 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: RE : more than one unless/if in a target References: <000601c35ccc$0a961e80$3048e60a@maafprod.ecorail.com> In-Reply-To: <000601c35ccc$0a961e80$3048e60a@maafprod.ecorail.com> Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I think that the conceptual similarity between depends and (if or unless) is misleading. depends is a natural switch for a build process, i.e. one task depends on another task being executed first. if and unless are nice-to-haves and I use them myself. But making a task dependent on something else by using if and unless means that the user can specify task dependencies in a non-purist and ultimately messy way that could easily lead to splurge and creep and ant becoming a monster. Just my 2cents. :) Emmanuel FELLER wrote: > >>-----Message d'origine----- >>De : Stefan Bodewig [mailto:bodewig@apache.org] >>Envoyé : jeudi 7 août 2003 11:36 >>À : user@ant.apache.org >>Objet : Re: more than one unless/if in a target >> >> >>On Wed, 06 Aug 2003, Mike Castle wrote: >> >> >>>Yeah, one of the many inconsistencies in ant. >>> >>> >>> >> >>would unless="a,b" mean "a or b" or "a and b" would it be the same >>boolean operator for if="a,b"? >> >>just one of the reasons that the inconsistency exists. >> >>Stefan >> > > > I think it should be an "and" operator as it is for the depends list. > > > In this way the target is executed after "can AND have AND comma" > targets so it should be executed only if "(a AND b) are not set". > > But unless and if should be used at a same time to compose logic > expression : > Unless="a,b" if="c,d" : (a and b are not set) and (c and d are set). > > Emmanuel > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org