From user-return-52180-apmail-ant-user-archive=ant.apache.org@ant.apache.org Wed Sep 07 16:34:35 2005 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 53532 invoked from network); 7 Sep 2005 16:34:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Sep 2005 16:34:34 -0000 Received: (qmail 96631 invoked by uid 500); 7 Sep 2005 16:34:28 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 96597 invoked by uid 500); 7 Sep 2005 16:34:28 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 96583 invoked by uid 99); 7 Sep 2005 16:34:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2005 09:34:28 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [68.142.200.92] (HELO web30209.mail.mud.yahoo.com) (68.142.200.92) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 07 Sep 2005 09:34:40 -0700 Received: (qmail 47733 invoked by uid 60001); 7 Sep 2005 16:34:25 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=VTJ2xEXpz4g7VgDaVmwDSpyl+Z1Egxfw8/xtip4WGqTfCGYeYahcdfYSpSe4+J0IhDqWIiFOrDXX+HDdFPphgpEvLBS+/NnTnlb74TLDVMMjeBCBmf/o/hmEqNJku+EPuEEb2P71/Ba+2mS5EQmvfbow6Ul5Bp2y7pJUE0kvpRw= ; Message-ID: <20050907163425.47731.qmail@web30209.mail.mud.yahoo.com> Received: from [198.190.171.222] by web30209.mail.mud.yahoo.com via HTTP; Wed, 07 Sep 2005 09:34:25 PDT Date: Wed, 7 Sep 2005 09:34:25 -0700 (PDT) From: Ninju Bohra Subject: RE: doesn't work as expected To: Ant Users List In-Reply-To: <1397E81F23832842BDD7B2D758D4B0B52AAD56@VEX00120.lan.huk-coburg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Let's start from the beginning... did you set the property ant.enable.asserts when running the target? --- "Rebhan, Gilbert" wrote: > > Hi, Ben > > that's not possible cause the for loop i want > to decorate with assert is an inner loop of another > for loop > The property is set in the outer loop. > > Checking if property isset ain't necessary, cause if > an error occurs > with loadfile (setting the property) build fails > automatically. > > I just wanted to know how to get assert working > correctly > if i need it > > Gilbert > > -----Original Message----- > From: Burgess, Benjamin > [mailto:BBurgess@tiaa-cref.org] > Sent: Wednesday, September 07, 2005 3:17 PM > To: Ant Users List > Subject: RE: doesn't work as expected > > An easier solution would be to pull the for loop > into its own target and > then add an if="your-property" to the target. > > Ben > > -----Original Message----- > From: Rebhan, Gilbert > [mailto:Gilbert.Rebhan@huk-coburg.de] > Sent: Wednesday, September 07, 2005 6:11 AM > To: user@ant.apache.org > Subject: doesn't work as expected > > > > Hi, > > antcontrib 1.0b2 / ant 1.6.5 > > i want to use the antcontrib / assert task in my > script to ensure > that a for loop is only executed if a property has > been set. > > so i have = > > > > > > ... > > > > > in my script. > > Now i tested the worst case, when the property > hasn't been set. > But the for loop runs nevertheless. > The property bla has not been set = > > > > > > ... > > > > > I also put the assert into ... > with same > result. > > From what i read in the antcontrib manual, assert > tests for > existence of the given property ?! > > Any hints ? > > OK i may use if / then ... but assert would be > shorter. > > > Gilbert > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org > > > > ************************************************************** > This message, including any attachments, contains > confidential > information intended for a specific individual and > purpose, and is > protected by law. If you are not the intended > recipient, please contact > sender immediately by reply e-mail and destroy all > copies. You are > hereby notified that any disclosure, copying, or > distribution of this > message, or the taking of any action based on it, is > strictly > prohibited. > TIAA-CREF > ************************************************************** > > > --------------------------------------------------------------------- > 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 > > ______________________________________________________ Click here to donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org