MCPcopy Create free account
hub / github.com/GateNLP/gate-core / readConfig

Method readConfig

src/test/java/gate/config/TestConfig.java:70–87  ·  view source on GitHub ↗

Helper method that processes a config file.

(URL configUrl)

Source from the content-addressed store, hash-verified

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

Callers 1

testConfigUpdatingMethod · 0.95

Calls 3

prlnMethod · 0.95
parseConfigFileMethod · 0.95
openStreamMethod · 0.80

Tested by

no test coverage detected