don't show mmp changed dialog when junit tests are running.
authorwpaul
Thu, 14 Jan 2010 17:00:15 -0600
changeset 767 b31077a6aa47
parent 766 67c35e64c1c9
child 769 2a21d00efb72
don't show mmp changed dialog when junit tests are running.
builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/CarbideSBSv1Builder.java
--- a/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/CarbideSBSv1Builder.java	Thu Jan 14 09:14:44 2010 -0600
+++ b/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/CarbideSBSv1Builder.java	Thu Jan 14 17:00:15 2010 -0600
@@ -1937,6 +1937,11 @@
 
 	protected boolean runMMPChangeCheck(final ICarbideBuildConfiguration buildConfig, IPath componentPath, boolean isTest, final CarbideCommandLauncher launcher) {
 
+		// don't worry about it for tests
+		if (WorkbenchUtils.isJUnitRunning()) {
+			return true;
+		}
+		
 		// ignore this for Qt projects since the mmp will be regenerated before each build.
 		final IProject project = buildConfig.getCarbideProject().getProject();
 		if (QtCorePlugin.isQtProject(project)) {
@@ -1968,6 +1973,11 @@
 	
 	protected boolean runMMPChangeCheck(final ICarbideBuildConfiguration buildConfig, List<IPath> normalMakMakePaths, List<IPath> testMakMakePaths, final CarbideCommandLauncher launcher) {
 
+		// don't worry about it for tests
+		if (WorkbenchUtils.isJUnitRunning()) {
+			return true;
+		}
+
 		// ignore this for Qt projects since the mmp will be regenerated before each build.
 		final IProject project = buildConfig.getCarbideProject().getProject();
 		if (QtCorePlugin.isQtProject(project)) {