You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ni...@arsoe-trelaze.com on 2003/07/01 16:25:09 UTC
jelly work with a list
Hi
I define a property :
my.list.directories=${dir.one}, ${dir.two}
And I try to iterate in this list so I do :
<j:forEach var="directory" items="${my.list.directories}">
<!-- do something-->
</j:forEach>
But I do only one iteration and the var equals : "${dir.one}, ${dir.two}"
with the values of ${dir.one} and ${dir.two}. The list is not separate.
Does list of properties are extract in maven ?
How do I iterate such collection of items?
Thank
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: jelly work with a list
Posted by Jason van Zyl <ja...@zenplex.com>.
On Tue, 2003-07-01 at 10:25, Nicolas.CHALUMEAU@arsoe-trelaze.com wrote:
> Hi
>
> I define a property :
> my.list.directories=${dir.one}, ${dir.two}
>
> And I try to iterate in this list so I do :
> <j:forEach var="directory" items="${my.list.directories}">
> <!-- do something-->
> </j:forEach>
>
> But I do only one iteration and the var equals : "${dir.one}, ${dir.two}"
> with the values of ${dir.one} and ${dir.two}. The list is not separate.
>
> Does list of properties are extract in maven ?
> How do I iterate such collection of items?
You use a Collection or an Iterator. What you defined is neither. A CSV
list of values doesn't cut it.
> Thank
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
jvz.
Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org
In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
-- Jacques Ellul, The Technological Society
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org