Unable to create java sdk client with okta.client.file system property

hello. i have a script i would like to run in multiple environments by defining different config files (ie okta-dev.yaml and okta-qa.yaml). the documentation here

https://developer.okta.com/okta-sdk-java/development/apidocs/com/okta/sdk/client/ClientBuilder.html

states that an okta yaml config file location can be set using the system propery okta.client.file however i’m unable to get this to work. i looked through the sdk code and found no references to this system property either, other than in the documentation. am i missing something obvious or is this an unimplemented feature?

I think it’s implemented in okta-sdk-impl

can you point me to it? i have v 1.5.2 of the api and impl. the documentation is in the api. can’t find anything related in the impl sources

If not already, please see https://github.com/okta/okta-sdk-java/blob/master/impl/src/main/java/com/okta/sdk/impl/client/DefaultClientBuilder.java#L69 to get info on the order of precedence of configuration file loading. There presently is no way to override the .yaml file location to a custom path. The javadoc at https://developer.okta.com/okta-sdk-java/development/apidocs/com/okta/sdk/client/ClientBuilder.html needs to be updated and is presently incorrect. Hope this helps.