}
public void module(String module) {
String[] checkModules = null;
ComplexDescGetter desc = new ComplexDescGetter();
DescEntry entry = null;
module = module.trim();
/* all: check all modules which contains a qa/unoapi folder
auto: check all modules which contains a qa/unoapi folder except the module is not added
*/
if (module.equals("all")) {
String[] names = getModulesFromSourceRoot();
checkModules = new String[names.length];
for (int i = 0; i < names.length; i++) {
// if a module is not added to a cws it contains a dot in its name (forms.lnk)
if (names[i].indexOf(".") != -1) {
checkModules[i] = "checkModule(" + names[i].substring(0, names[i].indexOf(".")) + ")";
} else {
checkModules[i] = "checkModule(" + names[i] + ")";
}
}
} else {
// list of modules to test: (sw,sc,sd)
if (module.indexOf(",") != -1) {
String[] names = module.split(",");
checkModules = new String[names.length];
for (int i = 0; i < names.length; i++) {
String trim = names[i].trim();
checkModules[i] = "checkModule(" + trim + ")";
}
} else {
checkModules = new String[]{"checkModule(" + module + ")"};
}
}
entry = desc.createTestDesc("complex.unoapi.CheckModuleAPI", "complex.unoapi.CheckModuleAPI", checkModules, log);
java_complex complex = new java_complex();
log.println("********** start test *************");
boolean result = complex.executeTest(param, new DescEntry[]{entry});