Open emoleumassi opened 6 years ago
I believe .properties files don't have any special meaning for quotes; here is the spec: https://docs.oracle.com/javase/7/docs/api/java/util/Properties.html#load(java.io.Reader)
If you do a cfg.render()
you can see how the properties have been parsed and adapt accordingly. You may find it less confusing to use ConfigObject.get
(cfg.root.get("roles").get("\"test@test.com\"")
perhaps) since it avoids also having to escape through the path syntax. See https://lightbend.github.io/config/latest/api/com/typesafe/config/ConfigObject.html#get-java.lang.Object-
Note section "paths, keys, and Config vs ConfigObject" in https://lightbend.github.io/config/latest/api/com/typesafe/config/Config.html
My java Code to read a role in the property-file:
With this call:
new ConfigIO().getRole("test@test.com")
Here a part of my test.properties:
Method threw
com.typesafe.config.ConfigException$Missing
exception.How can i read this property with Quotes?