Changeset View
Changeset View
Standalone View
Standalone View
autotests/reference/test.properties.ref
- This file was added.
1 | <Comment># Java Properties Sample File</Comment><br/> | ||||
---|---|---|---|---|---|
2 | <Key></Key><br/> | ||||
3 | <Comment># This is a commment</Comment><br/> | ||||
4 | <Comment>! This is also a comment</Comment><br/> | ||||
5 | <Key> </Key><Comment># comment</Comment><br/> | ||||
6 | <Key> </Key><Comment>! comment</Comment><br/> | ||||
7 | <Key></Key><br/> | ||||
8 | <Comment># keys and values can be separated by '=', ':' or by a series of spaces:</Comment><br/> | ||||
9 | <Key></Key><br/> | ||||
10 | <Key>key </Key><Separator>=</Separator><Value> value</Value><br/> | ||||
11 | <Key>key </Key><Separator>:</Separator><Value> value</Value><br/> | ||||
12 | <Key>key </Key><Value>value</Value><br/> | ||||
13 | <Key></Key><br/> | ||||
14 | <Comment># spaces, '=', or ':' can be used in the key by escaping them with a backslash:</Comment><br/> | ||||
15 | <Key></Key><br/> | ||||
16 | <Key>key\:continued </Key><Separator>=</Separator><Value> value</Value><br/> | ||||
17 | <Key>key\=continued </Key><Separator>=</Separator><Value> value</Value><br/> | ||||
18 | <Key>key\ continued </Key><Separator>=</Separator><Value> value</Value><br/> | ||||
19 | <Key></Key><br/> | ||||
20 | <Comment># the key starts with the first non blank character on the line:</Comment><br/> | ||||
21 | <Key></Key><br/> | ||||
22 | <Key> key </Key><Separator>=</Separator><Value> value</Value><br/> | ||||
23 | <Key> </Key><br/> | ||||
24 | <Comment># there can be an arbitrary amount of spaces between the key, the value, and the ':' or '=', if present:</Comment><br/> | ||||
25 | <Key></Key><br/> | ||||
26 | <Key>key</Key><Separator>=</Separator><Value>value</Value><br/> | ||||
27 | <Key>key </Key><Separator>=</Separator><Value> value</Value><br/> | ||||
28 | <Key></Key><br/> | ||||
29 | <Key>key</Key><Separator>:</Separator><Value>value</Value><br/> | ||||
30 | <Key>key </Key><Separator>:</Separator><Value> value</Value><br/> | ||||
31 | <Key></Key><br/> | ||||
32 | <Key>key </Key><Value>value</Value><br/> | ||||
33 | <Key>key </Key><Value>value</Value><br/> | ||||
34 | <Key></Key><br/> | ||||
35 | <Comment># values can be continued on another line by escaping the line end character with a backslash:</Comment><br/> | ||||
36 | <Key></Key><br/> | ||||
37 | <Key>key </Key><Separator>=</Separator><Value> value \</Value><br/> | ||||
38 | <Value> value continued</Value><br/> | ||||
39 | <Key> </Key><br/> | ||||
40 | <Comment># This works also over more than one line:</Comment><br/> | ||||
41 | <Key></Key><br/> | ||||
42 | <Key>key </Key><Separator>=</Separator><Value> value\</Value><br/> | ||||
43 | <Value> value continued 1\</Value><br/> | ||||
44 | <Value> value continued 2\</Value><br/> | ||||
45 | <Value> value continued 3</Value><br/> | ||||
46 | <Key> </Key><br/> | ||||
47 | <Comment># But if the line ends with an even number of backslashes, the value is not continued:</Comment><br/> | ||||
48 | <Key></Key><br/> | ||||
49 | <Key>key </Key><Separator>=</Separator><Value> value\\</Value><br/> | ||||
50 | <Key>newkey </Key><Separator>=</Separator><Value> value</Value><br/> | ||||
51 | <Key></Key><br/> | ||||
52 | <Key>key </Key><Separator>=</Separator><Value> value\\\\</Value><br/> | ||||
53 | <Key>newkey </Key><Separator>=</Separator><Value> value</Value><br/> | ||||
54 | <Key></Key><br/> | ||||
55 | <Comment># both key and value can be ommitted, in which case either the key or the value or both equal the empty string:</Comment><br/> | ||||
56 | <Key></Key><br/> | ||||
57 | <Key>key </Key><Separator>=</Separator><br/> | ||||
58 | <Key>key</Key><br/> | ||||
59 | <Separator>=</Separator><Value> value</Value><br/> | ||||
60 | <Key></Key><br/> | ||||
61 | <Separator>=</Separator><br/> | ||||
62 | <Separator>:</Separator><br/> | ||||
63 | <Key></Key><br/> |