From: Tod H. <th...@gi...> - 2004-10-27 17:33:55
|
Kevin Goess wrote: > > > Tod Harter wrote: > >> It seems to me that config file parsing ignores a lot of errors. It >> would be really nice to be able to have either a logging >> configuration checker or a 'pedantic' mode that throws an error on >> anything non-kosher it sees in the config file. > > > That's a built-in problem with a properties-style configuration > file--the format is open enough where it's hard to put constraints on > the file. > > If you want better configuration error-checking, try the xml-style > configuration file. Then you can check it against the DTD before you > run it, and that will catch a lot of possible errors. > Yeah, they're somewhat of a PITA to write, but that would probably be more reliable. I suppose I could write a checker that builds an XML conf file from a standard one. <digs out reference manuals...> |