ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Iteration of ant properties in the same natural order
Date Mon, 19 Apr 2010 09:42:35 GMT
On 2010-04-18, Raja Nagendra Kumar <Nagendra.Raja@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


Mime
View raw message