Constructeur. @param properties Properties
(Properties properties)
| 64 | * @param properties Properties |
| 65 | */ |
| 66 | public Parameters(Properties properties) { |
| 67 | super(); |
| 68 | directories = new ArrayList<>(); |
| 69 | if (properties.containsKey(DIRECTORIES_KEY)) { |
| 70 | for (final String s : properties.getProperty(DIRECTORIES_KEY).split(SEPARATORS)) { |
| 71 | directories.add(new File(s)); |
| 72 | } |
| 73 | } |
| 74 | checkDirectories(directories); |
| 75 | |
| 76 | excludedClasses = extractPatterns(properties, EXCLUDED_CLASSES_KEY); |
| 77 | |
| 78 | excludedMethods = extractPatterns(properties, EXCLUDED_METHODS_KEY); |
| 79 | |
| 80 | publicDeadCode = Boolean.valueOf(properties.getProperty(PUBLIC_DEAD_CODE_KEY)); |
| 81 | privateDeadCode = Boolean.valueOf(properties.getProperty(PRIVATE_DEAD_CODE_KEY)) |
| 82 | || !properties.containsKey(PUBLIC_DEAD_CODE_KEY) |
| 83 | && !properties.containsKey(PRIVATE_DEAD_CODE_KEY); |
| 84 | localDeadCode = Boolean.valueOf(properties.getProperty(LOCAL_DEAD_CODE_KEY)); |
| 85 | initDeadCode = Boolean.valueOf(properties.getProperty(INIT_DEAD_CODE_KEY)); |
| 86 | xmlReportFile = properties.getProperty(XML_REPORT_FILE_KEY) == null |
| 87 | || properties.getProperty(XML_REPORT_FILE_KEY).trim().isEmpty() ? null |
| 88 | : new File(properties.getProperty(XML_REPORT_FILE_KEY)); |
| 89 | includeViewFiles = Boolean.valueOf(properties.getProperty(INCLUDE_VIEW_FILES_KEY, |
| 90 | System.getProperty(INCLUDE_VIEW_FILES_KEY))); |
| 91 | } |
| 92 | |
| 93 | /** |
| 94 | * Constructeur. |
nothing calls this directly
no test coverage detected