Re: Looping number of times

2010-05-13 Thread Peter Reilly
y. It > contains information that may be confidential. Unless you are the named > addressee or an authorized designee, you may not copy or use it, or disclose > it to anyone else. If you received it in error please notify us immediately > and then destroy it. > > From: Jan [mailto

RE: Looping number of times

2010-05-12 Thread Wray, Nathan
, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. From: Jan [mailto:raghure...@gmail.com] Sent: Wednesday, May 12, 2010 12:24 PM To: Ant Users List Subject: Re: Looping number of times Hi All, i started using ant-contrib-1.0b3.jar and

Re: Looping number of times

2010-05-12 Thread Jan
Hi All, i started using ant-contrib-1.0b3.jar and stuck with one more problem on for loop For example see the "end" & "begin" attribute below, i don't want my loop to start with "0" i want to start with 1 ${ant.version} i is @{i} When i run this i get error BUILD FAILED C

Re: Looping number of times

2010-04-15 Thread Jan
Already tried it and didn't work $ ant -f test.xml Buildfile: test.xml Trying to override old definition of task for [echo] Apache Ant version 1.6.3 compiled on April 28 2005 BUILD FAILED C:\Temp\test.xml:8: The type doesn't support the "end" attribute. On Wed, Apr 14, 2010 at 11:52 PM, w

Re: Looping number of times

2010-04-14 Thread Jan
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üngliche Nachricht- > > Von: Jan [mailto:raghure...

RE: Looping number of times

2010-04-13 Thread Shawn Castrianni
That is why I said in my response: "I either could not get the ones I found working, or they were just too complicated" If you take the while task I sent source code for, and then combine that with antelope tasks to do math operations, you can write a for loop on an index with:

Re: Looping number of times

2010-04-13 Thread Jan
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} >

RE: Looping number of times

2010-04-12 Thread Shawn Castrianni
I either could not get the ones I found working, or they were just too complicated. Here is the one I wrote which is not a for loop, but can become one by maintaining your own index property and setting the if value to the loop maximum. import org.apache.tools.ant.BuildException; import org.a

Re: Looping number of times

2010-04-12 Thread Scot P. Floess
This exact question was posted sometime back... I wrote a macrodef that does it... I believe there is also a JWare library that does just that. You may be able to do something using a scripting language... On Mon, 12 Apr 2010, Jan wrote: Hi All, Is there any task available to loop for nu

Re: Looping number of times

2010-04-12 Thread Gilbert Rebhan
Original Message Subject: Looping number of times From: Jan To: Ant Users List Date: 12.04.2010 21:08 > 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 me