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 ?
>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
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
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
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,
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:[
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
+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
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
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
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!
-
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
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
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
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,
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;
(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
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
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
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
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
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
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
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
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
>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
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
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
: 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
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
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?
31 matches
Mail list logo