Red Hat Bugzilla – Bug 112272
work directory should be parameterized and moved to 'data'
Last modified: 2007-04-18 13:00:17 EDT
Description of problem:
There are at least two places in CCM where $CCM_HOME/work is
hard-coded as a default directory for saving data.
dev$ find src/ -type f -name *.java | xargs grep -l "work/"
However, $CCM_HOME/work has been deprecated in favor of $CCM_HOME/data
and $CCM_HOME/tmp. So, what we should do is add two new properties:
waf.runtime.data_directory and waf.runtime.temp_directory, which
default to $CCM_HOME/data and $CCM_HOME/tmp. Then we can replace the
occurences of "work/" with waf.runtime.data_directory.
The implementation is slightly different than what's mentioned in the
ticket. Now there is a com.arsdigita.runtime.CCM#getDataDirectory()
method which is used by lucene. (SecurityConfig is no longer an
issue). Internally, getDataDirectory returns ccm.home/data