X-Git-Url: http://git.nikiroo.be/?p=jvcard.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Fjvcard%2Fresources%2FBundles.java;h=04b6f707d1dcaeb1935d036d7fcd2f3cf5ff6597;hp=ef6e0d750ec2e9b80f518d3f756eab04787e114c;hb=e27d1404e9222796fb6097ab41cff873148b65c7;hpb=71ac69a01a1051b24386ac67124c0aee657f3225 diff --git a/src/be/nikiroo/jvcard/resources/Bundles.java b/src/be/nikiroo/jvcard/resources/Bundles.java index ef6e0d7..04b6f70 100644 --- a/src/be/nikiroo/jvcard/resources/Bundles.java +++ b/src/be/nikiroo/jvcard/resources/Bundles.java @@ -17,6 +17,10 @@ import java.util.ResourceBundle; * */ public class Bundles { + /** + * The configuration directory where we try to get the .properties + * in priority, or NULL to get the information from the compiled resources. + */ static private String confDir = getConfDir(); /** @@ -69,6 +73,16 @@ public class Bundles { Bundles.confDir = confDir; } + /** + * Get the primary configuration directory to look for .properties + * files in. + * + * @return the directory + */ + static public String getDirectory() { + return Bundles.confDir; + } + /** * This class encapsulate a {@link ResourceBundle} in UTF-8. It only allows * to retrieve values associated to an enumeration, and allows some