Created
September 8, 2014 07:51
-
-
Save choplin/ad8c64203a918e80acf8 to your computer and use it in GitHub Desktop.
hocon to Properties
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
val conf = ConfigFactory.load() | |
conf.getConfig("foo.properties").entrySet.asScala.foldLeft(new Properties) { (p, e) => | |
p.setProperty(e.getKey, e.getValue.unwrapped.toString) | |
p | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment