use of org.bndtools.api.IProjectValidator in project bndtools by bndtools.
the class MarkerSupport method validate.
void validate(Project model) throws Exception {
List<IValidator> validators = loadValidators();
if (validators != null) {
for (IValidator v : validators) {
try {
if (v instanceof IProjectValidator) {
((IProjectValidator) v).validateProject(model);
} else {
for (Builder builder : model.getSubBuilders()) {
IStatus status = v.validate(builder);
report(builder, status);
model.getInfo(builder);
}
}
} catch (Exception e) {
logger.logError("Validator error", e);
}
}
}
}
Aggregations