errorMessage = Bundle.YiiModuleCustomizerExtender_error_source_invalid();
return;
}
// validate
YiiCustomizerValidator validator = new YiiCustomizerValidator()
.validateDirectory(sourceDirectory, panel.getSystemPath())
.validateDirectory(sourceDirectory, panel.getApplicationPath())
.validateDirectory(sourceDirectory, panel.getZiiPath())
.validateDirectory(sourceDirectory, panel.getExtPath())
.validateDirectory(sourceDirectory, panel.getControllersPath())
.validateDirectory(sourceDirectory, panel.getViewsPath())
.validateDirectory(sourceDirectory, panel.getThemesPath())
.validateDirectory(sourceDirectory, panel.getMessagesPath());
ValidationResult result = validator.getResult();
if (result.hasWarnings()) {
isValid = false;
errorMessage = result.getWarnings().get(0).getMessage();
return;
}