Lines 613-629
Link Here
|
613 |
builderName = currentBuilder.getClass().getName(); |
613 |
builderName = currentBuilder.getClass().getName(); |
614 |
String pluginId = currentBuilder.getPluginId(); |
614 |
String pluginId = currentBuilder.getPluginId(); |
615 |
String message = NLS.bind(Messages.events_builderError, builderName, currentBuilder.getProject().getName()); |
615 |
String message = NLS.bind(Messages.events_builderError, builderName, currentBuilder.getProject().getName()); |
616 |
status.add(new Status(IStatus.WARNING, pluginId, IResourceStatus.BUILD_FAILED, message, null)); |
616 |
status.add(new Status(IStatus.ERROR, pluginId, IResourceStatus.BUILD_FAILED, message, e)); |
617 |
|
617 |
|
618 |
//add the exception status to the MultiStatus |
618 |
//add the exception status to the MultiStatus |
619 |
if (e instanceof CoreException) |
619 |
if (e instanceof CoreException) |
620 |
status.add(((CoreException) e).getStatus()); |
620 |
status.add(((CoreException) e).getStatus()); |
621 |
else { |
|
|
622 |
message = e.getMessage(); |
623 |
if (message == null) |
624 |
message = NLS.bind(Messages.events_unknown, e.getClass().getName(), builderName); |
625 |
status.add(new Status(IStatus.WARNING, pluginId, IResourceStatus.BUILD_FAILED, message, e)); |
626 |
} |
627 |
} |
621 |
} |
628 |
|
622 |
|
629 |
public void run() throws Exception { |
623 |
public void run() throws Exception { |