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 change 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 <project xmlns:ac="antlib:net.sf.antcontrib"> <taskdef uri="antlib:net.sf.antcontrib" resource="net/sf/antcontrib/antlib.xml" classpath="C:\my-ant-extension-libs\ant-contrib-1.0b3.jar" /> <echo>${ant.version}</echo> <ac:for param="i" end="10"> <sequential> <echo>i is @{i}</echo> </sequential> </ac:for> </project> 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, <jan.mate...@rzf.fin-nrw.de> wrote: > Here is the my working example : > <?xml version="1.0" encoding="ISO-8859-15"?> > <project xmlns:ac="antlib:net.sf.antcontrib"> > <echo>${ant.version}</echo> > <ac:for param="i" end="10"> > <sequential> > <echo>i is @{i}</echo> > </sequential> > </ac:for> > </project> > > 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üngliche Nachricht----- > > Von: Jan [mailto:raghure...@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 <for> type doesn't > > support the "end" > > attribute. > > > > On Tue, Apr 13, 2010 at 2:05 AM, <jan.mate...@rzf.fin-nrw.de> wrote: > > > > > or directly from the ac-manual > > > > > > The following example loops from one to ten. > > > > > > <ac:for param="i" end="10"> > > > <sequential> > > > <echo>i is @{i}</echo> > > > </sequential> > > > </ac:for> > > > > > > > > > Jan > > > > > > > -----Ursprüngliche Nachricht----- > > > > Von: Jan [mailto:raghure...@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-unsubscr...@ant.apache.org > > > For additional commands, e-mail: user-h...@ant.apache.org > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > >