Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 32796 invoked from network); 15 Apr 2004 10:16:54 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 15 Apr 2004 10:16:54 -0000 Received: (qmail 82929 invoked by uid 500); 15 Apr 2004 10:16:19 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 82899 invoked by uid 500); 15 Apr 2004 10:16:18 -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 82883 invoked from network); 15 Apr 2004 10:16:18 -0000 Received: from unknown (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by daedalus.apache.org with SMTP; 15 Apr 2004 10:16:18 -0000 Received: from z011104.bk.fin.local (z011104.bk.fin.local [193.109.238.140]) by dnsinet.rzf-nrw.de (8.12.10/8.12.10) with ESMTP id i3FAGTZY000901 for ; Thu, 15 Apr 2004 12:16:29 +0200 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2657.72) id <2W4R8DYP>; Thu, 15 Apr 2004 12:15:36 +0200 Message-ID: <879A5AD5DD0ED511891F0003473A9B560E23EFA4@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: RE: When is unless/if checked? Date: Thu, 15 Apr 2004 12:16:25 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C422D2.B53FF280" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C422D2.B53FF280 Content-Type: text/plain; charset="iso-8859-1" the order of execution is - perform the "depends" targets - check for if/unless - perform the target according to the check the if/unless attribute requires the name of a property, not a value. So use if="name" instead if="${name}" (which could be if="value" :-) Jan > -----Original Message----- > From: Ivan Ivanov [mailto:rambiusparkisanius@yahoo.com] > Sent: Thursday, April 15, 2004 10:34 AM > To: Ant Users List > Subject: Re: When is unless/if checked? > > > Zdravei Todore, > > 1) There is an error in your unless usage it should be > unless="condition" (yes, without ${}). > 2) An ant property is said to be set if it contains > some value in it. In other words > > is equivalent to > > in both cases this property is set since it has a > value in it. > > Dovizdane > Ivan Ivanov > --- Todor Boev wrote: > > Hello all, > > My question is when the unless/if conditions to > > execute a target are checked - only once at the > > beginning of the build or just prior to target > > execution? Seems to me that ant goes with the first > > option because the following: > > > > > > > > > > > > > depends="condition_checker" unless="${condition}"> > > > > > > > > will output > > > > [echo] Called with condition: true > > > > which is somewhat unexpected because the > > "conditional" should not be executed when > > condition=true. > > > > 10x in advance for all replys. > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Tax Center - File online by April 15th > http://taxes.yahoo.com/filing.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > ------_=_NextPart_001_01C422D2.B53FF280--