Can a properties file be shared among v2 custom plugins? If so, where should the properties file be placed and how do I access it from the plugin code?
Community moderators have prevented the ability to post new answers.
If the property file is something that needs to be retained for an upgrade, it is better to go into the home directory.
You should be able to add property files in WEB-INF/classes folder and access it like this.
InputStream iStream = ClassLoaderUtils.getResourceAsStream("xx.properties", this.getClass()); .... p = new Properties(); p.load(iStream);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.