Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 60957 invoked from network); 14 Apr 2010 16:13:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Apr 2010 16:13:49 -0000 Received: (qmail 15259 invoked by uid 500); 14 Apr 2010 16:13:48 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 15190 invoked by uid 500); 14 Apr 2010 16:13:48 -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 15182 invoked by uid 99); 14 Apr 2010 16:13:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 16:13:48 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of raghurefer@gmail.com designates 209.85.160.45 as permitted sender) Received: from [209.85.160.45] (HELO mail-pw0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Apr 2010 16:13:41 +0000 Received: by pwi6 with SMTP id 6so242055pwi.4 for ; Wed, 14 Apr 2010 09:13:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=U/V4bfxBTIOzNP4jxnkRhN00J2MM7KSmYBacvMN2bbs=; b=McePYq89R1xorsRq+g+78rVZ04QaKFRbq7skcabSVJ+6FT8nZKgfF5PsmMfilf1NkH OIHGbuve2TdzPO4evUX6mezHpXL6HTyPE3452vvGdSCY5RDdccfjcZZkaY2TGoUhB/3O LFTRYjWDo2bIW9rYYjY96xZedHA+an08v9+HQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=dbgo1Yn4tU/E1kL2oBoByzHaS6sPm7ORaETih+e5iDvD5jLP6r9515RFo1o17fHU7v qeHsYcsJuq3kUQMM9fo0bRvcpB76H2pD8lt6yV6HxdzGtgZHrm5x2Lp2ft4E4maecc7z tmAaEN2N6VE4a9rPCY0m1XQ0XqUT1O9DJ2Cnw= MIME-Version: 1.0 Received: by 10.142.88.9 with HTTP; Wed, 14 Apr 2010 09:13:19 -0700 (PDT) In-Reply-To: <9EE86F1965E19E499C80DE52AC807B5505171A50@z011021.bk.fin.local> References: <9EE86F1965E19E499C80DE52AC807B5505171A46@z011021.bk.fin.local> <9EE86F1965E19E499C80DE52AC807B5505171A50@z011021.bk.fin.local> Date: Wed, 14 Apr 2010 11:13:19 -0500 Received: by 10.142.152.37 with SMTP id z37mr3424100wfd.84.1271261599972; Wed, 14 Apr 2010 09:13:19 -0700 (PDT) Message-ID: Subject: Re: Looping number of times From: Jan To: Ant Users List Content-Type: multipart/alternative; boundary=000e0cd2e286153efa048434a81a X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd2e286153efa048434a81a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you Jan It did work with antconrib 1.0b3 I just have another question, is there a way to override jar in ant lib directory For eg, in our ant.home/lib directory it has ant-contrib-0.3.jar, and the same installation is being used by different team and they're not ready to chang= e the ant-contrib jar, but i want to use this new jar i tried the following way, but still its not taking the new ant contrib ${ant.version} i is @{i} got the error like Trying to override old definition of task antlib:net.sf.antcontrib:for [echo] Apache Ant version 1.7.1 compiled on June 27 2008 Trying to override old definition of task antlib:net.sf.antcontrib:for BUILD FAILED C:\my-prj\/test.xml:4: ac:for doesn't support the "end" attribute On Tue, Apr 13, 2010 at 11:42 PM, wrote: > Here is the my working example : > > > ${ant.version} > > > i is @{i} > > > > > Buildfile: build.xml > [echo] Apache Ant version 1.7.0 compiled on December 13 2006 > [echo] i is 0 > [echo] i is 1 > [echo] i is 2 > [echo] i is 3 > [echo] i is 4 > [echo] i is 5 > [echo] i is 6 > [echo] i is 7 > [echo] i is 8 > [echo] i is 9 > [echo] i is 10 > > BUILD SUCCESSFUL > > Tried with ant-contrib-1.0b3.jar > > > Jan > > > > -----Urspr=FCngliche Nachricht----- > > Von: Jan [mailto:raghurefer@gmail.com] > > Gesendet: Dienstag, 13. April 2010 21:38 > > An: Ant Users List > > Betreff: Re: Looping number of times > > > > Hi Jan > > > > is this ant- conrib stuff really works? > > > > coz i'm getting the error ---> The type doesn't > > support the "end" > > attribute. > > > > On Tue, Apr 13, 2010 at 2:05 AM, wrote: > > > > > or directly from the ac-manual > > > > > > The following example loops from one to ten. > > > > > > > > > > > > i is @{i} > > > > > > > > > > > > > > > Jan > > > > > > > -----Urspr=FCngliche Nachricht----- > > > > Von: Jan [mailto:raghurefer@gmail.com] > > > > Gesendet: Montag, 12. April 2010 21:08 > > > > An: Ant Users List > > > > Betreff: Looping number of times > > > > > > > > Hi All, > > > > > > > > Is there any task available to loop for number of times ? > > > > > > > > I know we can use ant-contrib for loop for the comma > > > > seperated list, instead > > > > of it i want to mention loop it for 10 times > > > > > > > > Any one any idea? > > > > > > > > > > > > --------------------------------------------------------------------- > > > 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 > > --000e0cd2e286153efa048434a81a--