Converts the passed stringy to a properties instance @param content The content to format @return the properties instance
(final CharSequence content)
| 392 | * @return the properties instance |
| 393 | */ |
| 394 | protected Properties contentToProps(final CharSequence content) { |
| 395 | Properties p = new Properties(); |
| 396 | try { |
| 397 | p.load(new StringReader(content.toString())); |
| 398 | Properties converted = new Properties(); |
| 399 | for(String key: p.stringPropertyNames()) { |
| 400 | converted.put(key, ConfigArgP.processConfigValue(p.getProperty(key))); |
| 401 | } |
| 402 | return converted; |
| 403 | } catch (Exception ex) { |
| 404 | throw new RuntimeException(ex); |
| 405 | } |
| 406 | } |
| 407 | |
| 408 | /** |
| 409 | * Converts the passed config to a readable properties file, applying the passed overrides |
no test coverage detected