Hi all,
In the recent past, I've asked about implementing a "for" loop in Ant. I've wanted something that could iterate over number ranges
or propertysets. And, I wanted something that didn't depend on Ant-Contrib 1.0b3. And, I wanted to be able to iterate forw
Use s begin and end attributes:
...
Jan
> -Ursprüngliche Nachricht-
> Von: Diana Huang (AU) [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 22. Juli 2008 07:05
> An: user@ant.apache.org
> Betreff: For loop
>
> Hi,
>
> I am using the below cod
You can't do it with the stock Ant Contrib for loop...
I've written something that does just that...using Ant Contrib - but its
not a perfect solution. You could conceivably do so scripting...
Or, there is another project:
http://antxtras.sourceforge.net/AntXtras/download.html
Hi,
I am using the below codes to get for loop working
Letter @{test}
However, if I want to iterate 60 times, how can I do it? (I don't want to put
60 characte
>
>
>
>
>
>
only as it comes from Ant core and not from AntContrib
>
>
> Test case @{files}
>
>
I dont think that support nested tasks ...
>
>
>
>
>
> But I keep getting this error
>
> C:\A.xml:9: C:\Documents\${tes
Hi
In a target, I have
Test case @{files}
But I keep getting this error
C:\A.xml:9: C:\Documents\${test_dir} not found.
Warmup.jmx and CI.jmx files are stored on a network folder in
\\foo\testdirectory.
How can I change this ${test_dir} to point to \\foo\test
to
e is 1
counter: 2
value is NOT 1
counter: 3
value is NOT 1
hth.
-ryano
- Original Message -
From: "broken connection"
To: "Ant Users List"
Subject: Help with iteration in for loop
Date: Tue, 3 Jul 2007 09:57:37 -0400
Hi Friends,
Is there any way to control i
roken connection"
To: "Ant Users List"
Subject: Help with iteration in for loop
Date: Tue, 3 Jul 2007 09:57:37 -0400
Hi Friends,
Is there any way to control iteration in ant. I want to put an
if-else
condition in the for loop to control the action depending upon the
itera
-else
condition in the for loop to control the action depending upon the
iteration
count.I tried this:
build.xml
counter: ${count}
value.properties file:
count=0
After I execute this,I get this as output:
C:\Documents and Settings\Desktop
Hi Friends,
Is there any way to control iteration in ant. I want to put an if-else
condition in the for loop to control the action depending upon the iteration
count.I tried this:
build.xml
counter: ${count}
value.properties file:
count=0
problem is to reference your @{argvalue} in
> the outputproperty name. So something like:
>
>
>
> Ben
>
> -Original Message-
> From: broken connection [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 29, 2007 11:57 AM
> To: Ant Users List; [EMAIL PROTECTED]
&
-
From: broken connection [mailto:[EMAIL PROTECTED]
Sent: Friday, June 29, 2007 11:57 AM
To: Ant Users List; [EMAIL PROTECTED]
Subject: Re: For loop question
Wow..now thats too much code for me!
I don't want something that complex,is this the only way to accomplish
this
or some si
; wrote:
>
> Interesting question... I actually had a need to iterate over a list
> (using for loop construct) but needed the previous, current and next
> elements in the list - certainly similar functionality. Here is my
> macro def:
>
> name = "process-list"
ion... I actually had a need to iterate over a list
(using for loop construct) but needed the previous, current and next
elements in the list - certainly similar functionality. Here is my
macro def:
http://jplate
Interesting question... I actually had a need to iterate over a list
(using for loop construct) but needed the previous, current and next
elements in the list - certainly similar functionality. Here is my
macro def:
description = "Allows one to iterate over a list/files an
Hi Friends,
I have a simple "for" task question. I use this for task from ant-contrib:
I want to pass in 3 values and store the output in 3 different properties .
Is there anyway to do this??
Rite now, the ou
ailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 20, 2007 7:19 AM
> To: user@ant.apache.org
> Subject: Using for loop
>
>
> I am trying to dynamically generate build2.xml by executing
> build1.xml. I have a build2_template.xml file and a property
> file. build2.xml is gene
MAIL PROTECTED]
> Sent: Wednesday, June 20, 2007 7:19 AM
> To: user@ant.apache.org
> Subject: Using for loop
>
>
> I am trying to dynamically generate build2.xml by executing
> build1.xml. I have a build2_template.xml file and a property
> file. build2.xml is generated by r
your goals a lot easier.
-Rob A
> -Original Message-
> From: arijit [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 20, 2007 7:19 AM
> To: user@ant.apache.org
> Subject: Using for loop
>
>
> I am trying to dynamically generate build2.xml by executing
299
>
> Geschäftsführer: Uwe Seltmann
> HRB Stuttgart 17655
> USt-IdNr.: DE 811944121
> -Ursprüngliche Nachricht-
> Von: arijit [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 20. Juni 2007 16:19
> An: user@ant.apache.org
> Betreff: Using for loop
>
>
Fax. +49 711 806098-299
Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121
-Ursprüngliche Nachricht-
Von: arijit [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 20. Juni 2007 16:19
An: user@ant.apache.org
Betreff: Using for loop
I am trying to
.xml file which is a
repititive work. So I was thinking of using some for - loop to write codes
like
in build2_template.xml
where N could be from 1 to some value which is defined in the property file.
the property file is loaded in build1.xml
Any suggestion ?
--
View this message in context
Yes, I am using 1.6.5. I never tested using an inner for loop - did it
work?
Guru Balse wrote:
Awesome, Scot. It works well! Can't wait for the "better" solution
that you are about to create :-)
You must use 1.6.5 for this (for example, 1.6.2 did not work)
classpa
Awesome, Scot. It works well! Can't wait for the "better" solution
that you are about to create :-)
You must use 1.6.5 for this (for example, 1.6.2 did not work)
classpath="/apache-ant-1.6.5ant1.6.2/lib/ant-contrib-1.0b1.jar"/>
I use propertyregex with the help of a macro:
In this case I am using the /dir/dir/dir/x.cpp name and
extracting the x as the program name.
On 3/21/06, Ivan Rambius Ivanov <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> In your case you can use to
Hello,
In your case you can use to get the name of
the file. For more sophisticated operations on paths
you may find useful with nested
.
Regards
Ivan
--- ar81 <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> When I write the following loop, I get absolute file
> pathes.
>
>
>
>
Hi all,
When I write the following loop, I get absolute file pathes.
C:\Temp\dir1\file1.xml
C:\Temp\dir1\file2.xml
C:\Temp\dir1\file3.xml
where work.dir=C:\Temp\dir1
I'd like to get :
file1.xml
file2.xml
file3.xml
Hi,
we want to switch our property files to xml format.
Now i'm looking for the best structure of that xml file.
i thought of =
v_1_0_0_1
Project 1
y
v_2_0_0_3
Project 2
n
v_2_2_0_1
Project 3
n
to access all modules within a for loop i
> From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED]
> i want to run an antcontrib for loop only,
> if a property has been set.
>
>
>
Glad to hear Ant-Contrib's works for you.
I believe your mistake above was to de-reference the property name instead
of supplying just
M
To: user@ant.apache.org
Subject: with for loop ?
Hi,
i want to run an antcontrib for loop only,
if a property has been set.
So i wrote =
but that didn't work.
How to check if a property has been set in
conjunction with a foor loop ?
R
Hi,
i want to run an antcontrib for loop only,
if a property has been set.
So i wrote =
but that didn't work.
How to check if a property has been set in
conjunction with a foor loop ?
Regards, Gi
31 matches
Mail list logo