Created
November 30, 2018 08:30
-
-
Save dmcg/9478474a3372ad3cdf27f2f4b721f9e3 to your computer and use it in GitHub Desktop.
Konfig ConfigurationProperties from file that may not exist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fun userOverrideProperties(file: File): ConfigurationProperties = | |
| if (file.isFile) | |
| ConfigurationProperties.fromFile(file) | |
| else | |
| ConfigurationProperties(Properties(), Location(file.absolutePath, file.toURI())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment