There's some inconstancy in Environment class versus home and data directories.
The following changeset is overriding the System property nuxeo.home.dir:
nuxeo-runtime julien$ hg log -r 854
changeset: 854:45ab45e3b72e
date: Wed Oct 06 20:36:51 2010 +0200
summary: NXP-5750 - exposing environment properties as system properties
Because of:
Properties sysprops = System.getProperties();
sysprops.setProperty(NUXEO_HOME_DIR, home.getAbsolutePath());
Involved data seem not to be critical (will be regenerated if missing).
The culprit changeset changed behavior applied by the following changeset (there was no release between both):
changeset: 784:db1ce55c994e
branch: 1.7
date: Fri Aug 06 18:22:43 2010 +0200
summary: NXP-5370 - Tomcat distribution must use nuxeo.data.dir (including for binaries); NXP-5460 - JBoss distribution should use nuxeo.data.dir (like Tomcat) instead of jboss.server.data.dir
We must check data management after upgrade.
JBoss:
nuxeo-dm-5.4.2-SNAPSHOT-jboss $ ls data/
binaries contribs derby h2 packages resources themes
nuxeo-dm-5.4.2-SNAPSHOT-jboss $ ls server/default/data/
NXRuntime hypersonic jnp-service.url tx-object-store wsdl xmbean-attrs
nuxeo-dm-5.4.2-SNAPSHOT-jboss $ ls server/default/data/NXRuntime/
data repos schemas web
Tomcat:
nuxeo-dm-5.4.2-SNAPSHOT-tomcat $ ls data/
binaries contribs derby h2 packages resources themes
nuxeo-dm-5.4.2-SNAPSHOT-tomcat $ ls nxserver/
data repos schemas web
nuxeo-dm-5.4.2-SNAPSHOT-tomcat $ ls nxserver/data/
bundles.ids