Which Directory Does the Configuration File Go?
I have code like: private static final String OPTION_FILE_NAME = "mvnplugin_mvnforum_MVNForumConfig"; static { ResourceBundle res = ResourceBundle.getBundle(OPTION_FILE_NAME); MVNFORUM_HOME = res.getString("MVNFORUM_HOME").trim(); WEBMASTER_EMAIL = res.getString("WEBMASTER_EMAIL").trim(); LOGO_URL = res.getString("LOGO_URL").trim(); String supportedLocales = res.getString("SUPPORTED_LOCALES").trim(); SUPPORTED_LOCALE_NAMES = StringUtil.getStringArray(supportedLocales, ";"); . . } And "mvnplugin_mvnforum_MVNForumConfig.properties" is a configuration file. Please advise regarding the directory in which this properties file is supposed to be for my code to read it properly. __ Do you Yahoo!? Yahoo! Search - Find what youre looking for faster http://search.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Which Directory Does the Configuration File Go?
> From: Caroline Jen [mailto:[EMAIL PROTECTED] > I have code like: > private static final String OPTION_FILE_NAME = > "mvnplugin_mvnforum_MVNForumConfig"; >ResourceBundle res = > ResourceBundle.getBundle(OPTION_FILE_NAME); > And "mvnplugin_mvnforum_MVNForumConfig.properties" is > a configuration file. Please advise regarding the > directory in which this properties file is supposed to > be for my code to read it properly. WEB-INF/classes will be on the classpath, so you can place it directly there, or underneath and use dotted notation like package names to refer to it. -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]