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

ian.packer
22.19.2015 10bbacf0b1b8ab594e251108b803ec4c5a321f15
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
commit10bbacf0b1b8ab594e251108b803ec4c5a321f15
tree b2414ec44bd3339941a6cfd58475270fdd004e6f tree | zip | gz
parent f7e6d3388d7760c40ea984862a864af53eedfcfb 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-sdk/opendj-server-legacy/src/main/java/org/opends/server/util/Platform.java 62 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj-server-legacy/src/main/java/org/opends/server/util/ServerConstants.java 4 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj-server-legacy/src/messages/org/opends/messages/utility.properties 2 ●●●●● diff | view | raw | blame | history