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

jvergara
03.48.2008 dffcd320297e23f6d95dad4c7b08a2c0a9c1893a
refs
author jvergara <jvergara@localhost>
Monday, March 3, 2008 17:48 +0100
committer jvergara <jvergara@localhost>
Monday, March 3, 2008 17:48 +0100
commitdffcd320297e23f6d95dad4c7b08a2c0a9c1893a
tree 485fdb0b3ecce58320cd1f473c798fcbd5364a8e tree | zip | gz
parent 665b834f0875606a2a7bff695e376d6205ad75f2 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
opends/src/server/org/opends/server/tools/CreateRCScript.java 23 ●●●●● diff | view | raw | blame | history