View | Details | Raw Unified | Return to bug 273147 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/core/internal/events/BuildManager.java (-1 / +1 lines)
Lines 613-619 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.ERROR, pluginId, IResourceStatus.BUILD_FAILED, message, e));
616
				status.add(new Status(IStatus.WARNING, 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)
(-)src/org/eclipse/core/tests/internal/builders/BuilderTest.java (-1 / +1 lines)
Lines 826-832 Link Here
826
			fail("3.0");
826
			fail("3.0");
827
		} catch (CoreException e) {
827
		} catch (CoreException e) {
828
			//see discussion in bug 273147 about build exception severity
828
			//see discussion in bug 273147 about build exception severity
829
			assertEquals("3.1", IStatus.ERROR, e.getStatus().getSeverity());
829
			assertEquals("3.1", IStatus.WARNING, e.getStatus().getSeverity());
830
			//expected
830
			//expected
831
		} finally {
831
		} finally {
832
			getWorkspace().removeResourceChangeListener(listener);
832
			getWorkspace().removeResourceChangeListener(listener);

Return to bug 273147