don't show mmp changed dialog when junit tests are running.
--- 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)) {