~ubuntu-branches/ubuntu/oneiric/commons-configuration/oneiric

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
configuration.loaded = true

packages = packagea
propertyInOrder = test.properties

include = include.properties

include.file = include-interpol.properties
include = ${include.file}

test.unescape = This \n string \t contains \" escaped \\ character\u0073
test.unescape.list-separator = This string contains \, an escaped list separator

#
# Other test properties
#

test.equals = value=one

test.empty =

test.mixed.array = a
test.mixed.array = b, c, d

test.multilines = This is a value spread out across several adjacent \
                  natural lines by escaping the line terminator with \
                  a backslash character.

#
# Test a property that uses a previous property
#

base = base
base.reference = ${base}extra
base.reference.array = ${base}extra
base.reference.array = ${base}extra

#
# Non String Properties
#

test.boolean       = true
test.boolean.array = false
test.boolean.array = true

test.byte       = 10
test.byte.array = 20
test.byte.array = 30

test.double       = 10.25
test.double.array = 20.35
test.double.array = 30.45

test.float       = 20.25
test.float.array = 30.35
test.float.array = 40.45

test.integer       = 10
test.integer.array = 20
test.integer.array = 30

test.long       = 1000000
test.long.array = 2000000
test.long.array = 3000000

test.short       = 1
test.short.array = 2
test.short.array = 3

test.overwrite = 1

#
# Test complex line ending escaping
#

test.path = C:\\path1\\
test.path = C:\\path2\\
test.path = C:\\path3\\\
complex\\test\\

#
# Test for the comment lines
#

#comment = this is not a property but a comment line starting with '#'
!comment = this is not a property but a comment line starting with '!'

#
# Tests for the key/value separators ('=', ':' or white space, escaped or not)
#

test.separator\=in.key = foo
test.separator\:in.key = bar
test.separator\	in.key = foo
test.separator\in.key = bar
test.separator\ in.key = foo

test.separator.equal = foo
test.separator.colon : foo
test.separator.tab	foo
test.separator.formfeedfoo
test.separator.whitespace foo