Helper method that processes a config file.
(URL configUrl)
| 68 | * Helper method that processes a config file. |
| 69 | */ |
| 70 | private void readConfig(URL configUrl) throws Exception { |
| 71 | ConfigDataProcessor configProcessor = new ConfigDataProcessor(); |
| 72 | |
| 73 | // open a stream to the builtin config data file (tests version) |
| 74 | InputStream configStream = null; |
| 75 | try { |
| 76 | configStream = configUrl.openStream(); |
| 77 | } catch(IOException e) { |
| 78 | throw new GateException( |
| 79 | "Couldn't open config data test file: " + configUrl + " " + e |
| 80 | ); |
| 81 | } |
| 82 | if (DEBUG) |
| 83 | Out.prln( |
| 84 | "Parsing config file ... " + configStream + "from URL" + configUrl |
| 85 | ); |
| 86 | configProcessor.parseConfigFile(configStream, configUrl); |
| 87 | } // readConfig |
| 88 | |
| 89 | /** Test config loading */ |
| 90 | // currently disabled as the files have moved on gate.ac.uk due to a change in svn structure |
no test coverage detected