Yo dawg i heard you like properties
-
When a server starts, it generates some .properties files from the configuration defined in server-properties.xml. Various daemons then read in the generated properties files. I decide to change the time zone that a specific daemon is configured for, rather than waiting for customers to complain every daylight savings change, as we've apparently been doing for years. I find the daemon is loading a property named time.zone; configure that in the xml, generate, and it doesn't come through I don't know where the code that generates the files is, so I ask the one person who would know why the property isn't coming through, then take some time to convince him that I have configured it right, it just isn't working. Bottom line: he doesn't know either. So I get creative:
<property><name>start.time</name><value><![CDATA[03:30 time.zone=UTC]]></value></property>
produces this:
start.time=03:30 time.zone=UTC
-
Filed under: Quoting is hard, let's go shopping!
-
Is TRWTF that it works?
What, does it convert out of the XML to write to a line-delimited file?
-
Is TRWTF that it works?
TRWTF is not using the Java classes dedicated to this purpose. They've only been there since forever.