You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Raja Nagendra Kumar <Na...@tejasoft.com> on 2010/04/18 10:58:01 UTC
Iteration of ant properties in the same natural order
Hi,
Does ant api has any class, which read ant/java properties files and allows
the iteration in the same order they were present in the original file.
e.g if the properties
a=k
b=c
d=10
etc exists..My iterator for the properties should give me the keys in the
order of a,b,d..
I was looking at org.apache.tools.ant.util.LayoutPreservingProperties .. but
does not seem to expose
Regards,
Nagendra
--
View this message in context: http://old.nabble.com/Iteration-of-ant-properties--in-the-same-natural-order-tp28281060p28281060.html
Sent from the Ant - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: Iteration of ant properties in the same natural order
Posted by Stefan Bodewig <bo...@apache.org>.
On 2010-04-18, Raja Nagendra Kumar <Na...@tejasoft.com> wrote:
> Does ant api has any class, which read ant/java properties files and
> allows the iteration in the same order they were present in the
> original file.
None that I was aware of.
> I was looking at org.apache.tools.ant.util.LayoutPreservingProperties
> .. but does not seem to expose
This is true, but is shouldn't be too difficult to expose an iterator
over all Pairs stored in logicalLines (returning Map.Entry instances,
probably) and provide a patch for this.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org