puppetlabs / ruby-hocon

A Ruby port of the Typesafe Config library.
Apache License 2.0
34 stars 30 forks source link

Properties file #111

Open axos88 opened 6 years ago

axos88 commented 6 years ago

Isn't a properties file a valid HOCON? Is there any reason it is not supported? The HOCON parser should be able to parse a properties file, should it not?

lindboe commented 6 years ago

Quick answer: Check out the doc from the HOCON spec, especially the linked section, to understand why HOCON can't parse all properties files. https://github.com/lightbend/config/blob/master/HOCON.md#note-on-java-properties-similarity

They do have a recommendation earlier in the spec about how you should go about merging properties and JSON/HOCON data if you need to.

axos88 commented 6 years ago

Thanks, might want to include this info / link in the readme, as they are cornercases, that are possibly rare and can be ignored by most users.