...
- Add a key to your runtime properties file:
- application_data_directory=/my/custom/location/
- Modify the openmrs.war file: /WEB-INF/web.xml file
- Change the context parameter "application.data.directory" to something. (use a trailing slash)
- Modify the conf/Catalina/openmrs/context.xml file in your tomcat (or other server) config:
Code Block <Context ...> ... <Parameter name="application.data.directory" value="/my/custom/location/" override="false"/> ... </Context>
(see http://tomcat.apache.org/tomcat-6.0-doc/config/context.html for more info)
For Developers
There are several convenience methods to help developers findSee the methods:
Code Block |
---|
OpenmrsUtil.getApplicationDataDirectory()
|
and
Code Block |
---|
OpenmrsUtil.getDirectoryInApplicationDataDirectory(String folderName)
|