Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 41126 invoked from network); 27 Aug 2008 16:05:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Aug 2008 16:05:15 -0000 Received: (qmail 70713 invoked by uid 500); 27 Aug 2008 16:05:09 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 70560 invoked by uid 500); 27 Aug 2008 16:05:09 -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 70549 invoked by uid 99); 27 Aug 2008 16:05:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2008 09:05:09 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2008 16:04:11 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KYNVg-0006T3-N3 for user@ant.apache.org; Wed, 27 Aug 2008 09:04:40 -0700 Message-ID: <19184177.post@talk.nabble.com> Date: Wed, 27 Aug 2008 09:04:40 -0700 (PDT) From: mindspin311 To: user@ant.apache.org Subject: ant global properies (variable) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: connoc.mindspin@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org I have a unit-test task which uses foreach to break up a list of unit test files, and runs the task 'parse' on each file. When I receieve an error code, or an empty log file is created, I want to set a certain property to true inside the parse task. I was hoping this would work, but as soon as the parse task is over, and foreach goes to the next one again, it seems to reset the property i set to true. After parse has been called N times, the property is set to null when referenced in the test task after the foreach. Pretty much is I want the equivelent of the following in ant. function blah(): prop = 1; echo prop; #prints 1 call foo(); echo prop; #prints 2 function foo(); echo prop; #prints 1 prop = 2; echo prop; #prints 2 -- View this message in context: http://www.nabble.com/ant-global-properies-%28variable%29-tp19184177p19184177.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org