Services/Sync/Server/GlobalConfFile: Difference between revisions

Jump to navigation Jump to search
Line 23: Line 23:
- If value is quoted with " chars, it's a string. This notation is useful to include "=" characters in the value. In case the value contains a " character, it must be escaped with a "\" character.
- If value is quoted with " chars, it's a string. This notation is useful to include "=" characters in the value. In case the value contains a " character, it must be escaped with a "\" character.


- When the value is composed of numbers and optionally suffixed by "-", it's converted to an integer.
- When the value is composed of numbers and optionally suffixed by "-", it's tentatively converted to an integer or a long depending on the language. If the number exceeds the range available in the language, it's left as a string. 


- If the value is any of those: Yes, yes, True, true, False, false, No, no, it's converted to a boolean, or 0 and 1 when the language does not have a boolean type.
- If the value is "true" or "false", it's converted to a boolean, or 0 and 1 when the language does not have a boolean type.


- A value can be an environment variable : "${VAR}" is replaced by the value of
- A value can be an environment variable : "${VAR}" is replaced by the value of
VAR if found in the environment. It's left alone otherwise.
VAR if found in the environment. If the variable is not found, an error must be raised.


- A value can contains multiple lines. When read, lines are converted into a
- A value can contains multiple lines. When read, lines are converted into a
Confirmed users
927

edits

Navigation menu