Loads properties from a file or url with the passed name @param name The name of the file or URL @return the loaded properties
(String name)
| 223 | * @return the loaded properties |
| 224 | */ |
| 225 | protected static Properties loadConfig(String name) { |
| 226 | try { |
| 227 | URL url = new URL(name); |
| 228 | return loadConfig(url); |
| 229 | } catch (Exception ex) { |
| 230 | return loadConfig(new File(name)); |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | /** |
| 235 | * Loads properties from the passed input stream |
no test coverage detected