I need to get the list of properties which are in the .properties file. For example, if have the following .properties file:
users.admin.keywords = admin users.a
You can use as below:
Configuration configuration = new PropertiesConfiguration(filename); Iterator keys = configuration.getKeys(); List keyList = new ArrayList(); while(keys.hasNext()) { keyList.add(keys.next()); }