Bug 1006078

Summary: State storage location
Product: [Retired] JBoss BPMS Platform 6 Reporter: Catherine Robson <crobson>
Component: Build and AssemblyAssignee: Alexandre Porcelli <porcelli>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Svitak <jsvitak>
Severity: low Docs Contact:
Priority: high    
Version: 6.0.0CC: mbaluch, rzhang
Target Milestone: ER5   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:09:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1006308    

Description Catherine Robson 2013-09-10 00:38:37 UTC
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.

Comment 3 Alexandre Porcelli 2013-10-23 13:27:45 UTC
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)

Comment 4 Jiri Svitak 2013-12-04 12:48:51 UTC
You can specify the state storage location using java environment variables, for example like this:
jboss-eap-6.1.1/bin/standalone.sh -Dorg.uberfire.nio.git.dir=/home/user/tmp
-Dorg.uberfire.metadata.index.dir=/home/user/tmp

Verified in ER5.