Red Hat Bugzilla – Bug 1006078
State storage location
Last modified: 2015-06-01 21:35:26 EDT
When you start the server a .index and .niogit and repository directory is created. These directories are generated wherever you executed the standalone.sh file from (pwd). This should be configured to be in a specific directory instead so that if someone starts the server from the ~/, jboss-eap-6.1, jboss-eap-6.1/bin directory for example the state is stored in a consistent location.
you can configure both using enviroment variables, here are the variables:
org.kie.nio.git.dir -> defines where store the .niogit folder (that will be replaced in next release to org.uberfire.nio.git.dir)
org.kie.kieora.index.dir -> defines where store the .index folder (that will be replaced in next release to org.uberfire.metadata.index.dir)
You can specify the state storage location using java environment variables, for example like this:
Verified in ER5.