use of aQute.service.reporter.Reporter.SetLocation in project bndtools by bndtools.
the class MarkerSupport method report.
private void report(Processor reporter, IStatus status) {
if (status == null || status.isOK())
return;
if (status.isMultiStatus()) {
for (IStatus s : status.getChildren()) report(reporter, s);
} else {
SetLocation location;
Throwable exception = status.getException();
if (exception != null)
if (status.getSeverity() == IStatus.ERROR)
location = reporter.exception(exception, status.getMessage());
else
location = reporter.warning(status.getMessage() + ": " + exception);
else {
if (status.getSeverity() == IStatus.ERROR) {
location = reporter.error(status.getMessage());
} else {
location = reporter.warning(status.getMessage());
}
}
location.file(reporter.getPropertiesFile().getAbsolutePath());
}
}
Aggregations