@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
>"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
; 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
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
Ok.. But in my script i cant assign newlist values to a property because In
my script newlist values will change dynamically over many iteration and i
need process..
Other than assigning to a property Is there any other options ???
glenn opdycke-hansen wrote:
>
> Ant properties are immutable
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
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
-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
"Try giving the property a new name"
I didnt get this..
pls can u explain ??
Jan.Materne wrote:
>
>>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 a
>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
Hey Thanks for awesome reply..
I have done the same procedure.. I have included groovy jar file n excuted
groovy codes within tags..
Now I am not getting How to pass a variable from to the main
script.. i,e How Do i access a variable outside tag.. The variable
is set within tag..
Here is the
I dont know any core tasks. Maybe there are external tasks for that.
Alternatively you could implement your own.
Jan
The original list : ${list}
filtered
12 matches
Mail list logo