|
Config constructor ignores ConfigFile contents: msg#00066java.enhydra.general
I'm trying to get a Config object from a file, but the constructor for Config() ignores the file's contents. If I run the following code: java.io.File file = new java.io.File("multiserver.conf"); com.lutris.util.ConfigFile configFile = new com.lutris.util.ConfigFile(file); java.io.File outFile = new java.io.File("/tmp/conftest"); java.io.FileOutputStream outStream = new java.io.FileOutputStream(outFile); configFile.write(outStream); com.lutris.util.KeywordValueTable blah = new com.lutris.util.KeywordValueTable(); blah.set("first", "a"); com.lutris.util.Config conf = new com.lutris.util.Config(blah, configFile); org.apache.log4j.Logger.getRootLogger().error("Properties: " + conf.toString()); It prints out the following: [java] 626 [main] ERROR root - Properties: {first=a} It is completely ignoring the data in multiserver.conf. If I try the constructor that takes only the config file, it also ignores the file contents. I've verified that the ConfigFile is reading the file by checking the output file /tmp/conftest.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Server side redirects and URL rewriting, Geoff Waggott |
|---|---|
| Next by Date: | RE: Config constructor ignores ConfigFile contents, Thorsten Hilker |
| Previous by Thread: | RE: tomcat vs. enhydra, Barr Bill P |
| Next by Thread: | RE: Config constructor ignores ConfigFile contents, Thorsten Hilker |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |