mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
03.48.2008 3ddf327f25f6aefef64c74cfe3b38e567b89ce41
refs
author jvergara <jvergara@localhost>
Monday, March 3, 2008 17:48 +0100
committer jvergara <jvergara@localhost>
Monday, March 3, 2008 17:48 +0100
commit3ddf327f25f6aefef64c74cfe3b38e567b89ce41
tree e342c3b89aacc4b4fd0326b1a2d80e5113f07d9b tree | zip | gz
parent f40d277bd90ff9f723d01c5ba0317b19bda4e9f5 view | diff
Fix for issue 2998 (Command ./bin/create-rc-script should not hard-code the OPENDS_JAVA_HOME in the script)

If the user specifies in the java.properties not to overwrite the environment the java properties specified in java.properties will take precedence over the variables set in the script. In general users using java.properties should use the overwrite mode (not doing it does not make much sense).

I have updated the code to set the OPENDS_JAVA_HOME in the rc script only if the user explicitly sets the java home in the create rc command line or if it is already set in the environment (and not systematically as it is today).

A bug with the name used for the environment variable of the java properties has also been fixed.
1 files modified
23 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/tools/CreateRCScript.java 23 ●●●●● diff | view | raw | blame | history