Ant For Loop: Looping over Ranges with Step and Over PropertySets

2011-12-08 Thread Steve Amerige
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

AW: For loop

2008-08-06 Thread Jan.Materne
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

Re: For loop

2008-07-22 Thread Scot P. Floess
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

For loop

2008-07-21 Thread Diana Huang (AU)
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

AW: fileset and directory to get for loop to work - How ?

2008-02-06 Thread Jan.Materne
> > > > > > 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

fileset and directory to get for loop to work - How ?

2008-02-04 Thread Z W
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

Re: Help with iteration in for loop

2007-07-03 Thread broken connection
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

Re: Help with iteration in for loop

2007-07-03 Thread ryan
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

Re: Help with iteration in for loop

2007-07-03 Thread Bill Rich
-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

Help with iteration in for loop

2007-07-03 Thread broken connection
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

Re: For loop question

2007-06-29 Thread broken connection
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] &

Re: For loop question

2007-06-29 Thread Scot P. Floess
- 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

RE: For loop question

2007-06-29 Thread Burgess, Benjamin
; 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"

Re: For loop question

2007-06-29 Thread broken connection
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

Re: For loop question

2007-06-29 Thread Scot P. Floess
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

For loop question

2007-06-29 Thread broken connection
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

Re: Using for loop

2007-06-20 Thread Doug Lochart
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

Re: Using for loop

2007-06-20 Thread Peter Reilly
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

RE: Using for loop

2007-06-20 Thread Anderson, Rob (Global Trade)
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

Re: AW: Using for loop

2007-06-20 Thread arijit
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 > >

AW: Using for loop

2007-06-20 Thread Knuplesch , Jürgen
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

Using for loop

2007-06-20 Thread arijit
.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

Re: For loop

2006-06-09 Thread Scot P. Floess
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

Re: For loop

2006-06-09 Thread Guru Balse
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"/>

Re: Getting relative pathes in a for loop

2006-03-22 Thread Peter Reilly
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

Re: Getting relative pathes in a for loop

2006-03-21 Thread Ivan \"Rambius\" Ivanov
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. > > > >

Getting relative pathes in a for loop

2006-03-21 Thread ar81
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

xmlproperties and for loop

2006-01-16 Thread Rebhan, Gilbert
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

RE: with for loop ?

2005-09-01 Thread Dominique Devienne
> 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

[Solved] was = with for loop ?

2005-08-31 Thread Rebhan, Gilbert
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

with for loop ?

2005-08-31 Thread Rebhan, Gilbert
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