Looping in ANT without

2002-11-18 Thread Narayanan, Gopalakrishnan
I am dealing with a configuration file which includes cluster configurations.The server to which my ANT script deployes may have 1 to n number of clusters.I have a property which specifies the number of clusters(project.no_of_clusters) and another property which specifies the actual ip addresses

RE: looping in ant

2002-02-04 Thread Shvartsburd, Feliks
Thanks very much. I will give it a try. -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 4:13 PM To: Ant Users List Subject: Re: looping in ant I thought this would be an easy one, but it made me work and also find a bug in (which will

Re: looping in ant

2002-02-04 Thread Erik Hatcher
): Erik - Original Message - From: "Shvartsburd, Feliks" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 2:16 PM Subject: RE: looping in ant > > I need to do the following

RE: looping in ant

2002-02-04 Thread Shvartsburd, Feliks
name. I could've used copy file="..." but I don't know the file name at run time. Thanks -Original Message- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 3:53 PM To: Ant Users List Subject: RE: looping in ant --- "Shvartsburd,

RE: looping in ant

2002-02-04 Thread Diane Holt
--- "Shvartsburd, Feliks" <[EMAIL PROTECTED]> wrote: > I need to do the following thing: > > 1. Copy .zip file to target directory and change its name in target > location. > Problem is that file name that I need to copy is not static. It changes > appending timestamp to it. All I know that ther

RE: looping in ant

2002-02-04 Thread Shvartsburd, Feliks
I need to do the following thing: 1. Copy .zip file to target directory and change its name in target location. Problem is that file name that I need to copy is not static. It changes appending timestamp to it. All I know that there is only one single .zip file in that location. Does anyone have

Re: looping in ant

2002-01-25 Thread Peter Mularien
Got you beat --- I simplified the script for posting, in fact ours does that exact thing you're talking about. Here is the line you need: for e.g.: [script omitted for readability] buildIt.setTarget(safari.getUserProperty("script.target"));

RE: looping in ant

2002-01-25 Thread Rubun Tang
quot;); buildIt.setInheritAll(false); } ]]> -Original Message- From: Peter Mularien [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 10:13 AM To: Ant Users List Subject: Re: looping in ant Alternatively, you could use script, and do something like:

Re: looping in ant

2002-01-25 Thread Peter Mularien
Alternatively, you could use script, and do something like:

Re: looping in ant

2002-01-24 Thread Frank E. Weiss
Scott, see if this can solve your problem. Here's a quick example of doing loops with ant. There are three files. build.xml - This is the original file with a new target "build-all". This new target chains a style task with an ant task. The style task creates a "build-cruise.xml" inter

Re: looping in ant

2002-01-24 Thread T Master
Diane will answer no doubt. She's a whizz at

Re: looping in ant

2002-01-24 Thread Scott Ellsworth
On Thursday, January 24, 2002, at 05:46 PM, Frank E. Weiss wrote: > I'm curious what you're trying to do. Three pattern that involve > looping are 1) doing something for each element of a set, [...] > Ant can do 1) for a set of files that match a pattern. You can also > chain a style task wit

Re: looping in ant

2002-01-24 Thread Frank E. Weiss
I'm curious what you're trying to do. Three pattern that involve looping are 1) doing something for each element of a set, 2) repeating some action indefinitely, 3) computing something iteratively (e.g. solving for a polynomial root using the Laplace algorithm). Ant definitely is not suited for

Re: looping in ant

2002-01-24 Thread Diane Holt
--- Rubun Tang <[EMAIL PROTECTED]> wrote: > I am sure this question has been asked before. But I couldn't find it in > the archive. > What I want to know is: Is there an ant task that do looping? With the advent of the task and the 'inheritAll' attribute for , you can iterate until some known va

looping in ant

2002-01-24 Thread Rubun Tang
Hi *, I am sure this question has been asked before. But I couldn't find it in the archive. What I want to know is: Is there an ant task that do looping? Basically I am looking for something like this: stuff that I want to do within a loop or ... Any help is appreciated.

Re: Looping in ANT

2001-11-12 Thread Manik Surtani
Hi there. Still a bit messy, but at least it seems to work. Build.xml is much cleaner now - and faster, too! Thanks! - Manik Peter Mularien wrote: >Hi Manik - > >I would suggest using antcall tasks in your script loop. For example: > > > > > > > >for (i=0; i<10; i++) >{ >

Re: Looping in ANT

2001-11-12 Thread Diane Holt
--- Manik Surtani <[EMAIL PROTECTED]> wrote: > Also, it is not possible to use the tags to envelope a set of > tasks to loop through, such as: > >