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

ian.packer
22.19.2015 c8f8d63a589ddda509689e2d0257dccf4e6f1c4c
refs
author ian.packer <ian.packer@forgerock.com>
Tuesday, September 22, 2015 14:19 +0200
committer ian.packer <ian.packer@forgerock.com>
Wednesday, September 23, 2015 10:47 +0200
commitc8f8d63a589ddda509689e2d0257dccf4e6f1c4c
tree 364a55a1daacde5fe387b85d9fa5dd8b70ee2143 tree | zip | gz
parent e1404672e50c8f6b3c80b522a1988c9827c251e8 view | diff
OPENDJ-2247: Improve CertAndKeyGen class location logic

This is a small fix/cleanup to Platform.java CertAndKeyGen handling. I've been using this to allow me to test various issues with IBM SDK 8.

The various if/then/else constructs were starting to look ugly so I changed this to just check a list of known/possible locations. There is also a java property introduced that could allow it to be easily overridden in the future.

This probably isn't the best longterm solution (I imagine the location/availability of this class could easily change again) - but it means at least DJ will be compatible with IBM SDK 8 in the meantime.
3 files modified
68 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/util/Platform.java 62 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/util/ServerConstants.java 4 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/messages/org/opends/messages/utility.properties 2 ●●●●● diff | view | raw | blame | history