Rick Genter wrote:

From: Nicolas Vervelle [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 4:51 AM
To: [email protected]
Subject: Sorting a property file ?


Hi,

I have a property file that is generated by <modified> in a <fileset>.
I would like to sort its content so that the files in it are sorted by 
directory.
Is it possible ?

Nicolas



Out of curiosity, what would be the point? Since java.util.Properties extends java.util.Hashtable, when a property file is loaded there is no way to access the properties in the order in which they exist in the file.

It's just for the "human" readability of the file : this property file is here to know which files have been uploaded to a web server with a <scp> task.
For example, if I want to force the upload of an entire directory, it is easier to remove all the corresponding lines in the property file if they are sorted by directory.


Nicolas



Reply via email to