| 220 | } |
| 221 | |
| 222 | private static List<Pattern> extractPatterns(Properties properties, String string) { |
| 223 | final List<Pattern> result = new ArrayList<>(); |
| 224 | if (properties.containsKey(string) && !properties.getProperty(string).isEmpty()) { |
| 225 | for (final String s : properties.getProperty(string).split(SEPARATORS)) { |
| 226 | result.add(Pattern.compile(s.replace('$', '.'))); |
| 227 | } |
| 228 | } |
| 229 | return result; |
| 230 | } |
| 231 | |
| 232 | private static void checkPropertiesFile(File propertiesFile) throws IOException { |
| 233 | if (!propertiesFile.exists()) { |