Re: AW: AW: Reversing a list

2009-08-06 Thread Eric Fetzer
@ant.apache.org Sent: Wednesday, August 5, 2009 11:09:23 PM Subject: RE: AW: AW: Reversing a list Hello people I have used javascript code written above and i gave new proerty name for each iteration while calling javascript scriptdef.. It works fine.. Thanks for useful replies :) Joshua Wunder-2

AW: AW: AW: Reversing a list

2009-08-06 Thread Jan.Materne
>"Try giving the property a new name" > >I didnt get this.. >pls can u explain ?? In your script is: //Here i am accessing list as "project.references.varId.list" . It will give its values // Here i am doing all operation do reverse and filter //then i am doing project.referenc

RE: AW: AW: Reversing a list

2009-08-05 Thread Raagu
; http://ant-contrib.sourceforge.net/tasks/tasks/variable_task.html > > -Original Message- > From: Raagu [mailto:rknilekani2...@gmail.com] > Sent: Wednesday, August 05, 2009 16:36 > To: user@ant.apache.org > Subject: Re: AW: AW: Reversing a list > > > "Try giving th

RE: AW: AW: Reversing a list

2009-08-05 Thread Joshua Wunder
For these situations I like to use the following: http://ant-contrib.sourceforge.net/tasks/tasks/variable_task.html -Original Message- From: Raagu [mailto:rknilekani2...@gmail.com] Sent: Wednesday, August 05, 2009 16:36 To: user@ant.apache.org Subject: Re: AW: AW: Reversing a list

Re: Reversing a list

2009-08-05 Thread David Weintraub
> > And also Is there any option to discard some of the values from list..?? > Please reply > Thanks in advance > -- > View this message in context: > http://www.nabble.com/Reversing-a-list-tp24823814p24823814.html > Sent from the Ant - Users mailing list archive at Nabble.com

Re: AW: Reversing a list

2009-08-05 Thread Raagu
> -glenn > > -- View this message in context: http://www.nabble.com/Reversing-a-list-tp24823814p24828299.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@an

Re: AW: Reversing a list

2009-08-05 Thread glenn opdycke-hansen
Ant properties are immutable, once the property is given a value that value cannot be changed. See http://ant.apache.org/manual/CoreTasks/property.html I believe the suggestion was to define a new property (with a new name). The value of the new property can then be assigned. -glenn

RE: AW: Reversing a list

2009-08-05 Thread Rebhan, Gilbert
P.S. : using $attributes.get('in').split(',') because i assumed your list is given comma separated, f.e. like being set via Regards, Gilbert -Original Message- From: Rebhan, Gilbert Sent: Wednesday, August 05, 2009 3:42 PM To: 'Ant Users List' Sub

RE: AW: Reversing a list

2009-08-05 Thread Rebhan, Gilbert
-Original Message- From: Raagu [mailto:rknilekani2...@gmail.com] Sent: Wednesday, August 05, 2009 3:17 PM To: user@ant.apache.org Subject: Re: AW: Reversing a list /* [..] How can i access the the newlist here (outside task) I tried ${list} But it is giving old values

Re: AW: AW: Reversing a list

2009-08-05 Thread Raagu
g > For additional commands, e-mail: user-h...@ant.apache.org > > > -- View this message in context: http://www.nabble.com/Reversing-a-list-tp24823814p24827129.html Sent from the Ant - Users mailing list archive at Nabble.com.

AW: AW: Reversing a list

2009-08-05 Thread Jan.Materne
>How can i access the the newlist here (outside task) >I tried ${list} >But it is giving old values .. which is set initially.. >please do reply. Maybe you are not doing anything wrong. Properties in Ant are immutable. Try giving the property a new name. Jan

Re: AW: Reversing a list

2009-08-05 Thread Raagu
; >>which contains >>list of names say name1,name2,ant,forum,nabble . All r >>comma separated.. >> >>I want to reverse this list such dat , after reversing "list" >>should give me >>nabble,forum,ant,name2,name1.. >> >>And also

AW: Reversing a list

2009-08-05 Thread Jan.Materne
list : ${filtered} reverted + filtered : ${reverted} >-Ursprüngliche Nachricht- >Von: Raagu [mailto:rknilekani2...@gmail.com] >Gesendet: Mittwoch, 5. August 2009 11:46 >An: user@ant.apache.org >Betreff: Reversing a list > > >Hello People &

Reversing a list

2009-08-05 Thread Raagu
. And also Is there any option to discard some of the values from list..?? Please reply Thanks in advance -- View this message in context: http://www.nabble.com/Reversing-a-list-tp24823814p24823814.html Sent from the Ant - Users mailing list a