Hi,

I'm currently using wicket 1.4-m1

I need to be able to partially override a properties file.

Eg,

Classpath:
Application.properties
 key1=123
 key2=456

Filesystem:
Application.properties
 key2=444 
 key3=555
 

This should result in a resource which is like this
Application.properties
 key1=123
 key2=444
 key3=555


Basically merging the 2 properties together with the filesystem overriding
the classpath version.

Currently I'm adding a resource folder in my App.init() with 
getResourceSettings().addResourceFolder(configProperties.getCustomResourceBase());

>From looking through the code it looks like I will need to extend the
PropertiesFactory and override "load" to handle the merging, and also extend
the ResourceStreamLocator to make locateByClassLoader and
locateByResourceFinder public.

Would be a useful RFE or there is another way of achieving this?

Currently, if you add a property resource on the filesystem via
resourceSettings.addResourceFolder which does not include all the keys, you
will get errors - as the IResourceStream.locate method will never bother
trying to load the corresponding properties from the classpath.
-- 
View this message in context: 
http://www.nabble.com/Internationalisation-with-custom-folder-tp18705254p18705254.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to