How to write multiple line property value using PropertiesConfiguration?

Uhkkgjhfjf Jgkjkhj picture Uhkkgjhfjf Jgkjkhj · Jan 23, 2012 · Viewed 83.5k times · Source

I have a properties file with a property with a List value (comma separated), how to write this property in a multi-line ? (backslash after the comma)?

I can't find anything about this or at least about escaping comma to comma and backslash.

Answer

Joop Eggen picture Joop Eggen · Jan 23, 2012

If you mean the following; that just relies on backslash + end-of-line. I just found it documented in: http://docs.oracle.com/javase/6/docs/api/java/util/Properties.html

primes = 2,\
    3,\
    5,\
    7,\
    11