1 module Test_properties =
4 # Test tomcat properties file
5 #tomcat.commented.value=1
8 tomcat.application.name=testapp
9 tomcat.application.description=my test application
10 property.with_underscore=works
12 empty.property.withtrailingspaces= \n! more comments
20 long.description=this is a description that happens to span \
21 more than one line with a combination of tabs and \
48 (* Other tests that aren't supported yet
49 overflow.description=\
50 just wanted to indent it
53 let lns = Properties.lns
57 { "#comment" = "Test tomcat properties file" }
58 { "#comment" = "tomcat.commented.value=1" }
59 { "#comment" = "config" }
60 { "tomcat.port" = "8080" }
61 { "tomcat.application.name" = "testapp" }
62 { "tomcat.application.description" = "my test application" }
63 { "property.with_underscore" = "works" }
65 { "empty.property.withtrailingspaces" }
66 { "!comment" = "more comments" }
70 { "key4" = "=value4" }
71 { "key5\"" = "value5" }
72 { "key6/c" = "value6" }
74 { "long.description" = " < multi > "
75 { = "this is a description that happens to span " }
76 { = "more than one line with a combination of tabs and " }
81 { "#comment" = "comment break" }
83 { "short.break" = " < multi > "
94 { "multi" = "spaces" }
95 { "indented" = "spaces" }
98 { "space" = "and = equals" }
99 { "space" = " < multi > "
104 { "escaped\:colon" = "value" }
105 { "escaped\=equals" = "value" }
106 { "escaped\ space" = "value" }
107 test lns put conf after
108 set "tomcat.port" "99";
109 set "tomcat.application.host" "foo.network.com"
112 # Test tomcat properties file
113 #tomcat.commented.value=1
116 tomcat.application.name=testapp
117 tomcat.application.description=my test application
118 property.with_underscore=works
120 empty.property.withtrailingspaces= \n! more comments
128 long.description=this is a description that happens to span \
129 more than one line with a combination of tabs and \
152 escaped\=equals=value
154 tomcat.application.host=foo.network.com
157 (* GH issue #19: value on new line *)
161 { "k" = " < multi > "
162 { } { = "b" } { = "c" } }
164 test lns get "tomcat.util.scan.DefaultJarScanner.jarsToSkip=\
165 bootstrap.jar,commons-daemon.jar,tomcat-juli.jar\n" =
166 { "tomcat.util.scan.DefaultJarScanner.jarsToSkip" = " < multi > "
167 { } { = "bootstrap.jar,commons-daemon.jar,tomcat-juli.jar" } }
170 test lns get "# comment\r\na.b=val\r\nx=\r\n" =
171 { "#comment" = "comment" }
175 test lns get "# \r\n! \r\n" = { } { }