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
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
):
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
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,
--- "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
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
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"));
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:
Alternatively, you could use script, and do something like:
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
Diane will answer no doubt. She's a whizz at
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
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
--- 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
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.
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++)
>{
>
--- 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:
>
>