Reads options from file. Note: the returned options have not been post-processed.
(File file)
| 374 | * Note: the returned options have not been post-processed. |
| 375 | */ |
| 376 | private static Options readRawOptions(File file) { |
| 377 | ObjectMapper mapper = new ObjectMapper(new YAMLFactory()); |
| 378 | try { |
| 379 | return mapper.readValue(file, Options.class); |
| 380 | } catch (IOException e) { |
| 381 | throw new ConfigException("Failed to read options from " + file, e); |
| 382 | } |
| 383 | } |
| 384 | |
| 385 | static int getCurrentJavaVersion() { |
| 386 | String version = System.getProperty("java.version"); |