Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix frontendproperties readFile() to work with classpath and update d…
…ownload_custom_buttons_json reference (#10946) * app.properties: add new download_custom_buttons_json to enum and confic_service property list * FrontendProperty enum: fix ordering so list ends on correct line * app.properties example for download_custom_buttons_json fixed - changed example to use absolute path based on default docker config, since classpath: isn't supported - updated documentation - added TODO on readFile() method * merge in docs updates from master * download_custom_buttons: doc tweak * application.properties example updated to match reference * FrontEndProperties: update readFile() to support relative and classpath by leveraging spring ResourceUtils * download_custom_buttons_json: update examples back to "classpath:" * Application.properties example: updated classpath relative path * Frontend Properties readFile: changed classpath to use ClassLoader.getResourceAsStream() instead of ResourceUtils.getFile() - check both the file system and the classpath * readfile: logging, fix style * readFile: split out file/resource search code to new method locateFile() - modified logging to use the verb "Found" --------- Co-authored-by: Denis Papp <denis@arriboworks.com> Co-authored-by: Denis Papp <pappde@users.noreply.github.com>
- Loading branch information