Red Hat Bugzilla – Bug 1267280
Repositories folder created outside of EAP directory
Last modified: 2016-01-08 17:07:45 EST
Description of problem:
If you run BPMS using your own script which is located outside of 'jboss-eap-6.4' directory, 'repositories' folder will be created in the same directory where this script is located.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run BPMS with shell script located outside of 'jboss-eap-6.4' directory.
2. See what will appear in the folder with your script.
'repositories' folder and some XML file are created there.
Nothing should be created outside the jboss-eap-6.4 folder. 'repositories' directory should have fixed location inside EAP folder.
This default behavior can be changed using system properties, isn't that sufficient in this case (for example the installer script could set that system property so that the repository is always created in the same location, regardless of where the script was invoked from)?
Thanks for the information Kris. I did not know there is a system property to change this behavior. But why is the 'repositories' folder created at the same location where the script running BPMS is located? Is it done this way on purpose? Because otherwise I think it should have fixed location inside jboss-eap-6.4 directory unless something else is specified by that system property you have mentioned.
@Thomas, can you please also advise the location of the other folders created by Business Central when running from the script? e.g. .niogit.
The location of .niogit is a child of System.getProperty( "user.dir" ) which according to http://stackoverflow.com/questions/16239130/java-user-dir-property-what-exactly-it-means would be the folder the user "starting the process" was "in". So, I'd expect it to be in the same folder as the script you mention.
The "repository" folder is created from an relative parent too (however we don't explicitly use the above System Property), and it appears this is also the folder in which the User executed the script.
So, whatever we do for this BZ needs to be consistent for all folders created by Business Central. If .niogit is in the expected/correct folder I can simply change the location of the "repositories" folder to use the System Property as a parent.
Michael, now I can see there also other folders like .index, .niogit and .security. I have quickly checked the EAP documentation  but I am not really sure what is the best location for these folders. Maybe they can be put directly to jboss-eap-6.4 folder (JBOSS_HOME).