Re: Question about loop in Ant

2007-03-21 Thread Steve Loughran
Farid Izem wrote: Hi All, I have write a ant script which check the availibility of Oracle listener based on tcp reachibility (waitfor task) and jdbc connection (sql task). I'd like to make somehing like that : Is there something i can do easily or do i need to write my own ant task ?

AW: Question about loop in Ant

2007-03-21 Thread Jan.Materne
>Betreff: RE: Question about loop in Ant > >http://www.cenqua.com/fisheye/demo/browse/~raw,r=1.4/ant/docs/m >anual/CoreTasks/sequential.html >-- >Charles Knell >[EMAIL PROTECTED] - email > > > >-Original Message- >From: Farid Izem <[EMAIL PROTECT

RE: Question about loop in Ant

2007-03-20 Thread Gilles Scokart
I'm not sure you will find exactly what you need, but look at the http://ant-contrib.sourceforge.net/tasks/tasks/ Gilles > -Original Message- > From: Farid Izem [mailto:[EMAIL PROTECTED] > Sent: mardi 20 mars 2007 22:32 > To: user@ant.apache.org > Subject: Questi

RE: Question about loop in Ant

2007-03-20 Thread cknell
ubject: Question about loop in Ant Hi All, I have write a ant script which check the availibility of Oracle listener based on tcp reachibility (waitfor task) and jdbc connection (sql task). I'd like to make somehing like that : Is there something i can do easily or do i need to write

Question about loop in Ant

2007-03-20 Thread Farid Izem
Hi All, I have write a ant script which check the availibility of Oracle listener based on tcp reachibility (waitfor task) and jdbc connection (sql task). I'd like to make somehing like that : Is there something i can do easily or do i need to write my own ant task ? Kind Regards,

Re: Implementing a loop in ANT

2006-06-09 Thread Scot P. Floess
quot; >> list.txt fi DELIM=, let X=$X+1 Done Run this first to generate the LIST in list.txt, then use the foreach task to loop over the LIST property in your build.xml. I know it's kinda lame, but it works. -Rob A -Original Message- From: Scot P. Floess [mailto:[

Re: Implementing a loop in ANT

2006-06-09 Thread Scot P. Floess
ty in your build.xml. I know it's kinda lame, but it works. -Rob A -----Original Message- From: Scot P. Floess [mailto:[EMAIL PROTECTED] Sent: Friday, June 09, 2006 3:50 AM To: Ant Users List Subject: Re: Implementing a loop in ANT They do, but unfortunately not exactly what Guru nee

RE: Implementing a loop in ANT

2006-06-09 Thread Anderson, Rob (Global Trade)
+1 Done Run this first to generate the LIST in list.txt, then use the foreach task to loop over the LIST property in your build.xml. I know it's kinda lame, but it works. -Rob A > -Original Message- > From: Scot P. Floess [mailto:[EMAIL PROTECTED] > Sent: Friday, June 09, 2006

Re: Implementing a loop in ANT

2006-06-09 Thread Scot P. Floess
They do, but unfortunately not exactly what Guru needs. They support for-loops over lists or file sets. Really, he needs something like: ... I'm trying to figure out a way to do this using ant/ant-contrib but its not readily apparent to me (I though it'd be trivial) to make it happen. Wh

RE: Implementing a loop in ANT

2006-06-08 Thread dbrosius
ant-contrib.sourceforge.net has some tasks to do this. -Original Message- From: "Guru Balse" <[EMAIL PROTECTED]> Sent: Wed, June 7, 2006 2:17 pm To: "Ant Users List" Subject: Implementing a loop in ANT I am sure this question has been asked before, and I co

Re: Implementing a loop in ANT

2006-06-08 Thread Guru Balse
Thanks to Dominique Devienne, Peter Reilly, Ninju Bohra, Scot P. Floess, Ben Stringer, and Steve Lughran for giving me such good ideas on achieving the loop functionality.I will get back to individuals if I need further help. The Ant Users List rocks! -

Re: Implementing a loop in ANT

2006-06-08 Thread Scot P. Floess
loop in ANT without using scripts? For example, if I want to call a certain target N times, how can I do it? Using ant-contrib is OK. Of course, something like list="1,2,3,4,5,6,...,N"> would work but I want N to be a property that can be specified in the command line. Thanks i

Re: Implementing a loop in ANT

2006-06-08 Thread Scot P. Floess
before, and I could not see any reasonable answer in the archives. How can I implement a loop in ANT without using scripts? For example, if I want to call a certain target N times, how can I do it? Using ant-contrib is OK. Of course, something like list="1,2,3,4,5,6,...,N"> woul

Re: Implementing a loop in ANT

2006-06-08 Thread Steve Loughran
Dominique Devienne wrote: Ant-Contrib's accepts any type which exposes an iterator() oh, you have just given me an idea for a devious little java1.5 class. something that implements Iterable, for use in the fancy for loops, but which reflects onto a class passed in and calls the iterator() m

Re: Implementing a loop in ANT

2006-06-08 Thread Ben Stringer
On Wed, 2006-06-07 at 11:17 -0700, Guru Balse wrote: > I am sure this question has been asked before, and I could not see any > reasonable answer in the archives. How can I implement a loop in ANT > without using scripts? For example, if I want to call a certain target > N times,

Re: Implementing a loop in ANT

2006-06-08 Thread Peter Reilly
Here is a example (beanshell rocks!): import java.util.Iterator; public class Loop implements Iterator { private int begin = 0; private int end = 10; private int curr = 0; public void setBegin(int b) { begin = b;

Re: Implementing a loop in ANT

2006-06-07 Thread Ninju Bohra
(and test cases) just send me an email, Ninju - Original Message From: Guru Balse <[EMAIL PROTECTED]> To: Ant Users List Sent: Wednesday, June 7, 2006 7:47:52 PM Subject: Re: Implementing a loop in ANT Thanks, Scot. You illustrate the problem quite well. The problem is t

Re: Implementing a loop in ANT

2006-06-07 Thread Guru Balse
echo] val = 4 [echo] val = 9 BUILD SUCCESSFUL Total time: 2 seconds Hope that helps... Scot Guru Balse wrote: I am sure this question has been asked before, and I could not see any reasonable answer in the archives. How can I implement a loop in ANT without using scripts? For example, if I

Re: Implementing a loop in ANT

2006-06-07 Thread Scot P. Floess
t a loop in ANT without using scripts? For example, if I want to call a certain target N times, how can I do it? Using ant-contrib is OK. Of course, something like list="1,2,3,4,5,6,...,N"> would work but I want N to be a property that can be specified in the command line. Thank

Re: Implementing a loop in ANT

2006-06-07 Thread Scot P. Floess
ent a loop in ANT without using scripts? For example, if I want to call a certain target N times, how can I do it? Using ant-contrib is OK. Of course, something like list="1,2,3,4,5,6,...,N"> would work but I want N to be a property that can be specified in the command line. Thank

Re: Implementing a loop in ANT

2006-06-07 Thread Jeffrey E Care
7/2006 02:17:47 PM: > I am sure this question has been asked before, and I could not see any > reasonable answer in the archives.  How can I implement a loop in ANT > without using scripts?  For example, if I want to call a certain target > N times, how can I do it? > > Usin

Re: Implementing a loop in ANT

2006-06-07 Thread Dominique Devienne
Ant-Contrib's accepts any type which exposes an iterator() method I believe, so you'd have to write a Java task or to create such an type. You could also try a recursive or (with proper stopping condition ;-) that writes the numbers to a file, and then it. Using a little

Implementing a loop in ANT

2006-06-07 Thread Guru Balse
I am sure this question has been asked before, and I could not see any reasonable answer in the archives. How can I implement a loop in ANT without using scripts? For example, if I want to call a certain target N times, how can I do it? Using ant-contrib is OK. Of course, something like

AW: AW: AW: loop in ant

2006-01-24 Thread Jan.Materne
Properties are immutable ;-) Jan >-Ursprüngliche Nachricht- >Von: Patrick Martin [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 24. Januar 2006 17:05 >An: Ant Users List >Betreff: Re: AW: AW: loop in ant > >Hello, > >I once tried to implement a while task but

Re: AW: AW: loop in ant

2006-01-24 Thread Patrick Martin
Hello, I once tried to implement a while task but I had an issue with some conditions like equal. ... the property used in equal is evaluated before the call to equal, and only once. So it will never change. Is there a way to avoid that? Here is the code I used: public class WhileTask

AW: AW: AW: loop in ant

2006-01-24 Thread Jan.Materne
>Ok. Sorry about that. no problem. >But there's no other way to do it? I >cant make my own tasks. It´s not difficult. Basically you can do the same using

Re: AW: AW: loop in ant

2006-01-24 Thread Henrik Gemal
2006 14:19 An: Ant Users List Betreff: Re: AW: loop in ant how do you implement your own task? [EMAIL PROTECTED] wrote: I would implement my own task... while condition=true dodelete path and maybe running as asynchronous thread Jan -Ursprüngliche Nach

AW: AW: loop in ant

2006-01-24 Thread Jan.Materne
As described in the manual? ;) I wrote a tutorial about that. Jan >-Ursprüngliche Nachricht- >Von: Henrik Gemal [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 24. Januar 2006 14:19 >An: Ant Users List >Betreff: Re: AW: loop in ant > >how do you implement you

Re: AW: loop in ant

2006-01-24 Thread Henrik Gemal
: Dienstag, 24. Januar 2006 13:30 An: user@ant.apache.org Betreff: loop in ant I need to loop until I can delete a directory. The directory is locked when the user is running a client. My current code looks like this, but it only checks two times. I really need to loop untill the delete is succesfull

AW: loop in ant

2006-01-24 Thread Jan.Materne
t;Betreff: loop in ant > >I need to loop until I can delete a directory. The directory >is locked when the user is running a client. > >My current code looks like this, but it only checks two times. >I really need to loop untill the delete is succesfull. > >Can it be done

loop in ant

2006-01-24 Thread Henrik Gemal
I need to loop until I can delete a directory. The directory is locked when the user is running a client. My current code looks like this, but it only checks two times. I really need to loop untill the delete is succesfull. Can it be done?