Velocity Reviews

Velocity Reviews (
-   Java (
-   -   Properties Files & Different Locations (

Jason Cavett 04-23-2008 09:17 PM

Properties Files & Different Locations
I'm working on an application that, while generic (with respect to the
problem its solving), requires different terminology depending on what
field its being used in. So, I want to provide the ability to skin
the application through a properties file. I currently provide a way
for the user to select a skin (which I hope to have in a ZIP file -
but I haven't determined that yet). I have not yet finished the
skinning feature because of my follow up question...

Using a ResourceBundle, how do I load up that resource so it uses the
skin the user has selected (assume it can be anywhere on the disk).
I've seen something like this when I externalize Strings in Eclipse,
but the file is located within Eclipse.

private static final String BUNDLE_NAME =
private static final ResourceBundle RESOURCE_BUNDLE =
ResourceBundle .getBundle(BUNDLE_NAME);

I'm unsure of how to pass in the "" file that a
user may want from their skin. (It gets even more confusing when I
want to skin the icons as well.)

Thanks for any help or direction.

All times are GMT. The time now is 12:22 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.