| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
package net.sf.statcvs.util; |
| 5 | |
|
| 6 | |
import java.util.List; |
| 7 | |
|
| 8 | |
import net.sf.statcvs.output.ConfigurationOptions; |
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
public final class ModuleUtil { |
| 15 | 0 | private ModuleUtil() { |
| 16 | 0 | } |
| 17 | |
|
| 18 | |
|
| 19 | |
|
| 20 | |
|
| 21 | |
|
| 22 | |
|
| 23 | |
|
| 24 | |
|
| 25 | |
|
| 26 | |
|
| 27 | |
|
| 28 | |
|
| 29 | |
|
| 30 | |
|
| 31 | |
|
| 32 | |
public static boolean modulesPresent() { |
| 33 | 0 | return ConfigurationOptions.getConfigStringProperty("modules", null) != null; |
| 34 | |
} |
| 35 | |
|
| 36 | |
public static List getConfigModules() { |
| 37 | 0 | return ConfigurationOptions.getConfigStringListProperty("modules", null); |
| 38 | |
} |
| 39 | |
|
| 40 | |
public static String getConfigModuleName(final String moduleId) { |
| 41 | 0 | return ConfigurationOptions.getConfigStringProperty("module." + moduleId + ".name", moduleId); |
| 42 | |
} |
| 43 | |
|
| 44 | |
public static String getConfigModuleRegexp(final String moduleId) { |
| 45 | 0 | return ConfigurationOptions.getConfigStringProperty("module." + moduleId + ".regexp", null); |
| 46 | |
} |
| 47 | |
} |